diff options
author | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:29:19 +1000 |
commit | 07274513e984f0b5544586c74508ccd16e7dcafa (patch) | |
tree | b32ff2a9136fbc1a4a6a0ed1e4d79cde0f5f16d9 /libraries/eina/src/examples/eina_list_01.c | |
parent | Added Irrlicht 1.8, but without all the Windows binaries. (diff) | |
download | SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.zip SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.gz SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.bz2 SledjHamr-07274513e984f0b5544586c74508ccd16e7dcafa.tar.xz |
Remove EFL, since it's been released now.
Diffstat (limited to '')
-rw-r--r-- | libraries/eina/src/examples/eina_list_01.c | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/libraries/eina/src/examples/eina_list_01.c b/libraries/eina/src/examples/eina_list_01.c deleted file mode 100644 index 4fcb020..0000000 --- a/libraries/eina/src/examples/eina_list_01.c +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | //Compile with: | ||
2 | //gcc -g eina_list_01.c -o eina_list_01 `pkg-config --cflags --libs eina` | ||
3 | |||
4 | #include <stdio.h> | ||
5 | #include <Eina.h> | ||
6 | |||
7 | int | ||
8 | main(int argc, char **argv) | ||
9 | { | ||
10 | Eina_List *list = NULL; | ||
11 | Eina_List *l; | ||
12 | void *list_data; | ||
13 | |||
14 | eina_init(); | ||
15 | |||
16 | list = eina_list_append(list, "tigh"); | ||
17 | list = eina_list_append(list, "adar"); | ||
18 | list = eina_list_append(list, "baltar"); | ||
19 | list = eina_list_append(list, "roslin"); | ||
20 | |||
21 | EINA_LIST_FOREACH(list, l, list_data) | ||
22 | printf("%s\n", (char*)list_data); | ||
23 | printf("\n"); | ||
24 | |||
25 | l = eina_list_nth_list(list, 1); | ||
26 | list = eina_list_append_relative_list(list, "cain", l); | ||
27 | |||
28 | list = eina_list_append_relative(list, "zarek", "cain"); | ||
29 | |||
30 | list = eina_list_prepend(list, "adama"); | ||
31 | |||
32 | list = eina_list_prepend_relative(list, "gaeta", "cain"); | ||
33 | |||
34 | list = eina_list_prepend_relative_list(list, "lampkin", l); | ||
35 | |||
36 | EINA_LIST_FOREACH(list, l, list_data) | ||
37 | printf("%s\n", (char*)list_data); | ||
38 | |||
39 | eina_list_free(list); | ||
40 | |||
41 | eina_shutdown(); | ||
42 | |||
43 | return 0; | ||
44 | } | ||