Lines Matching refs:wp
74 static void printout(register Wc_t *wp, register char *name,register int mode) in printout() argument
77 sfprintf(sfstdout," %7I*d",sizeof(wp->lines),wp->lines); in printout()
79 sfprintf(sfstdout," %7I*d",sizeof(wp->words),wp->words); in printout()
81 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->chars); in printout()
83 sfprintf(sfstdout," %7I*d",sizeof(wp->chars),wp->longest); in printout()
94 register Wc_t *wp; in b_wc() local
149 if (!(wp = wc_init(mode))) in b_wc()
168 wp->chars = statb.st_size - lseek(sffileno(fp),0L,1); in b_wc()
172 wc_count(wp, fp, cp); in b_wc()
175 tchars += wp->chars; in b_wc()
176 twords += wp->words; in b_wc()
177 tlines += wp->lines; in b_wc()
178 printout(wp,cp,mode); in b_wc()
182 wp->lines = tlines; in b_wc()
183 wp->chars = tchars; in b_wc()
184 wp->words = twords; in b_wc()
185 printout(wp,"total",mode); in b_wc()