Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/eet
Dir : e17/libs/eet/src/lib Modified Files: Eet.h Log Message: this example would never compile =================================================================== RCS file: /cvs/e/e17/libs/eet/src/lib/Eet.h,v retrieving revision 1.34 retrieving revision 1.35 diff -u -3 -r1.34 -r1.35 --- Eet.h 13 Jun 2006 10:20:22 -0000 1.34 +++ Eet.h 30 Sep 2006 18:42:57 -0000 1.35 @@ -153,6 +153,7 @@ * Example: * @code * #include <Eet.h> + * #include <stdio.h> * * int * main(int argc, char **argv) @@ -163,13 +164,13 @@ * * strcpy(buf, "Here is a string of data to save!"); * - * ef = eet_open("/tmp/my_file.eet, EET_FILE_MODE_WRITE); + * ef = eet_open("/tmp/my_file.eet", EET_FILE_MODE_WRITE); * if (!ef) return -1; * if (!eet_write(ef, "/key/to_store/at", buf, 1024, 1)) - * fprintf("Error writing data!\n"); + * fprintf(stderr, "Error writing data!\n"); * eet_close(ef); * - * ef = eet_open("/tmp/my_file.eet, EET_FILE_MODE_READ); + * ef = eet_open("/tmp/my_file.eet", EET_FILE_MODE_READ); * if (!ef) return -1; * list = eet_list(ef, "*", &num); * if (list) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs