this example would never compile

SVN revision: 26245
This commit is contained in:
Peter Wehrfritz 2006-09-30 18:42:57 +00:00
parent 481c47b748
commit b08b9b4ff3
1 changed files with 4 additions and 3 deletions

View File

@ -153,6 +153,7 @@ extern "C" {
* Example:
* @code
* #include <Eet.h>
* #include <stdio.h>
*
* int
* main(int argc, char **argv)
@ -163,13 +164,13 @@ extern "C" {
*
* 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)