diff options
| author | David Moc <personal@cdatgoose.org> | 2026-03-09 17:40:18 +0100 |
|---|---|---|
| committer | David Moc <personal@cdatgoose.org> | 2026-03-09 17:40:18 +0100 |
| commit | 1af8b8a568ba1782c7f54c575dd7cbe352e0d4a4 (patch) | |
| tree | 098fa8507bf30537a1b4cfa0b2389f5f142b17cb /main.c | |
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#include <stdio.h> +#include <unistd.h> +#include <stdlib.h> +int main(int argc, char *argv[]) +{ + sleep(2); + if (argc < 2) { + printf("Usage: %s <name>\n", argv[1]); + return EXIT_FAILURE; + } + printf("Hello World from %s\n", argv[1]); + return EXIT_SUCCESS; +} |
