diff --git a/src/yes.c b/src/yes.c new file mode 100644 index 0000000..992c78b --- /dev/null +++ b/src/yes.c @@ -0,0 +1,19 @@ +#include +#include + +int +main(int argc, char *argv[]) +{ + char a = 'y'; + + if(argv[1] != NULL) + { + strcpy(&a,argv[1]); + } + while(1) + { + putchar(a); + putchar('\n'); + } + return 0; +}