k9core

Unnamed repository
Log | Files | Refs | LICENSE

commit 87681f91c1a20287ebec25befecd5ecd66b69c1c
parent 976d1ed2bfc15b3f9738de0355b1719fcae94fc9
Author: qorg11 <qorg@vxempire.xyz>
Date:   Tue,  2 Jun 2020 02:22:14 +0200

Added yes

Diffstat:
Asrc/yes.c | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/yes.c b/src/yes.c @@ -0,0 +1,19 @@ +#include <stdio.h> +#include <string.h> + +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; +}