Return to wc.c CVS log | Up to [local] / src / usr.bin / wc |
version 1.5, 2001/07/12 05:17:31 | version 1.6, 2001/11/19 19:02:17 | ||
---|---|---|---|
|
|
||
int argc; | int argc; | ||
char *argv[]; | char *argv[]; | ||
{ | { | ||
register int ch; | int ch; | ||
setlocale(LC_ALL, ""); | setlocale(LC_ALL, ""); | ||
|
|
||
cnt(file) | cnt(file) | ||
char *file; | char *file; | ||
{ | { | ||
register u_char *C; | u_char *C; | ||
register short gotsp; | short gotsp; | ||
register int len; | int len; | ||
register int64_t linect, wordct, charct; | int64_t linect, wordct, charct; | ||
struct stat sbuf; | struct stat sbuf; | ||
int fd; | int fd; | ||
u_char buf[MAXBSIZE]; | u_char buf[MAXBSIZE]; |