summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-15 16:26:41 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-05-15 16:26:41 +0100
commit2ba8ec6cc1865ff591d1686dde03e2994e69dfad (patch)
tree1ca4e9626be97ed6b15e0e00cbc2d89ba063c68b /pages
parent75b7c6a995c64fa9bdda11389b307f2164d8a675 (diff)
hello tut - get args correct
Diffstat (limited to 'pages')
-rw-r--r--pages/develop/tutorials/c/hello-world.md.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/pages/develop/tutorials/c/hello-world.md.txt b/pages/develop/tutorials/c/hello-world.md.txt
index 48f4fdc08..90a122fa3 100644
--- a/pages/develop/tutorials/c/hello-world.md.txt
+++ b/pages/develop/tutorials/c/hello-world.md.txt
@@ -124,13 +124,13 @@ efl_main(void *data EINA_UNUSED, const Efl_Event *ev)
124{ 124{
125 Efl_Loop_Arguments *args = ev->info; 125 Efl_Loop_Arguments *args = ev->info;
126 126
127 if (eina_array_count(args->argv) == 0) 127 if (eina_array_count(args->argv) <= 1)
128 { 128 {
129 printf("Hello World!\n"); 129 printf("Hello World!\n");
130 } 130 }
131 else 131 else
132 { 132 {
133 printf("Hello %s!\n", (char *) eina_array_data_get(args->argv, 0)); 133 printf("Hello %s!\n", (char *) eina_array_data_get(args->argv, 1));
134 } 134 }
135 135
136 efl_exit(0); 136 efl_exit(0);