k9core/src/yes.c

20 lines
228 B
C
Raw Normal View History

2020-06-02 00:22:14 +00:00
#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;
}