user333 revised this gist 3 days ago. Go to revision
1 file changed, 20 insertions
yes.c(file created)
| @@ -0,0 +1,20 @@ | |||
| 1 | + | #include <stdio.h> | |
| 2 | + | #include <stdbool.h> | |
| 3 | + | ||
| 4 | + | int main(int argc, char** argv) | |
| 5 | + | { | |
| 6 | + | if (argc > 1) | |
| 7 | + | { | |
| 8 | + | while (true) | |
| 9 | + | { | |
| 10 | + | for (int i = 1; i < argc; i++) | |
| 11 | + | printf("%s ", argv[i]); | |
| 12 | + | printf("\n"); | |
| 13 | + | } | |
| 14 | + | } | |
| 15 | + | else | |
| 16 | + | { | |
| 17 | + | while (true) | |
| 18 | + | printf("y\n"); | |
| 19 | + | } | |
| 20 | + | } | |
Newer
Older