Added yes

This commit is contained in:
qorg11 2020-06-02 02:22:14 +02:00
parent 976d1ed2bf
commit 87681f91c1
Signed by: qorg11
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 19 additions and 0 deletions

19
src/yes.c Normal file
View File

@ -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;
}