Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/embryo
Dir : e17/libs/embryo/examples
Modified Files:
example.sma
Log Message:
more meaty api...
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/embryo/examples/example.sma,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- example.sma 25 Mar 2004 09:44:54 -0000 1.2
+++ example.sma 29 Mar 2004 11:58:56 -0000 1.3
@@ -12,11 +12,28 @@
main()
{
- testfn(12345, "Panties!!!!", 7);
+ new Float:t;
+ testfn(12345, "Panties!!!!", 7);
+ t = seconds();
+ printf("SECONDS = %f\n", t);
+ testdate();
return 77;
}
+testdate()
+{
+ new year, month, day, yearday, weekday, hour, minute;
+ new Float:second;
+
+ date(year, month, day, yearday, weekday, hour, minute, second);
+ printf("%i/%i/%i\n", day, month, year);
+ printf("%i:%i:%f\n", hour, minute, second);
+ printf("yearday: %i, weekday: %i\n", yearday, weekday);
+ printf("frand: %f\n", randf());
+ printf("rand: %X\n", rand());
+}
+
tester(arg1=0, str[]="", arg2=0)
{
if (arg1 == 7) printf("arg1 == 7!!!\n");
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs