V7/usr/src/cmd/yes.c

Compare this file to the similar file:
Show the results in this format:

main(argc, argv)
char **argv;
{
	for (;;)
		printf("%s\n", argc>1? argv[1]: "y");
}