summaryrefslogtreecommitdiff
path: root/rushs/tinyprintf/hello_friends/hello.c
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-09-15 01:08:27 +0200
commitc9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c (patch)
tree3e4f42f93c7ae89a364e4d51fff6e5cec4e55fa9 /rushs/tinyprintf/hello_friends/hello.c
add: graphs et rushs
Diffstat (limited to 'rushs/tinyprintf/hello_friends/hello.c')
-rw-r--r--rushs/tinyprintf/hello_friends/hello.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/rushs/tinyprintf/hello_friends/hello.c b/rushs/tinyprintf/hello_friends/hello.c
new file mode 100644
index 0000000..63df2f1
--- /dev/null
+++ b/rushs/tinyprintf/hello_friends/hello.c
@@ -0,0 +1,13 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ if (argc == 1)
+ printf("Hello World!\n");
+ else
+ for (int i = 1; i < argc; i++)
+ {
+ printf("Hello %s!\n", argv[i]);
+ }
+ return 0;
+}