Return to what.c CVS log | Up to [local] / src / usr.bin / what |
version 1.3, 1996/06/26 06:40:11 | version 1.4, 1996/06/26 07:08:36 | ||
---|---|---|---|
|
|
||
for (i = 0; match[i]; i++) | for (i = 0; match[i]; i++) | ||
if ((c = getchar()) != match[i]) | if ((c = getchar()) != match[i]) | ||
goto loop; | goto loop; | ||
printf("$%s", match); | printf("\t$%s", match); | ||
while (isprint(c = getchar())) | while (isprint(c = getchar())) | ||
putchar(c); | putchar(c); | ||
putchar('\n'); | putchar('\n'); |