diff options
author | Carsten Haitzler <raster@rasterman.com> | 2012-11-13 23:52:18 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2012-11-13 23:52:18 +0000 |
commit | 9bfde157889c99dfdb1778276f3e63fde5a1906c (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/examples/eet-basic.c | |
parent | 87b2de8a2160ed48e5a267b3954755d0c04ceec5 (diff) | |
download | eet-master.tar.gz |
move libs already in EFL into... IN-EFL - this will stop/prevent/limitmaster
thnigs like people using them and patching them, etc.
SVN revision: 79255
Diffstat (limited to 'src/examples/eet-basic.c')
-rw-r--r-- | src/examples/eet-basic.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/examples/eet-basic.c b/src/examples/eet-basic.c deleted file mode 100644 index 05ff397..0000000 --- a/src/examples/eet-basic.c +++ /dev/null @@ -1,40 +0,0 @@ -#include <Eet.h> - -int -main(void) -{ - Eet_File *ef; - char *ret; - int size; - char *entries[] = - { - "Entry 1", - "Big text string here compared to others", - "Eet is cool" - }; - - eet_init(); - - // blindly open an file for output and write strings with their NUL char - ef = eet_open("test.eet", EET_FILE_MODE_WRITE); - eet_write(ef, "Entry 1", entries[0], strlen(entries[0]) + 1, 0); - eet_write(ef, "Entry 2", entries[1], strlen(entries[1]) + 1, 1); - eet_write(ef, "Entry 3", entries[2], strlen(entries[2]) + 1, 0); - eet_close(ef); - - // open the file again and blindly get the entries we wrote - ef = eet_open("test.eet", EET_FILE_MODE_READ); - ret = eet_read(ef, "Entry 1", &size); - printf("%s\n", ret); - free(ret); - ret = eet_read(ef, "Entry 2", &size); - printf("%s\n", ret); - free(ret); - ret = eet_read(ef, "Entry 3", &size); - printf("%s\n", ret); - free(ret); - eet_close(ef); - - eet_shutdown(); -} - |