Return to what.c CVS log | Up to [local] / src / usr.bin / what |
version 1.12, 2009/10/27 23:59:50 | version 1.13, 2015/01/22 19:10:17 | ||
---|---|---|---|
|
|
||
if ((c = getchar()) != match[i]) | if ((c = getchar()) != match[i]) | ||
goto loop; | goto loop; | ||
printf("\t$%s", match); | printf("\t$%s", match); | ||
while (isprint(c = getchar())) | while (isprint(c = getchar())) { | ||
putchar(c); | putchar(c); | ||
if (c == '$') | |||
break; | |||
} | |||
putchar('\n'); | putchar('\n'); | ||
matches++; | matches++; | ||
if (sflag) | if (sflag) |