countspace.c
contents ::
address.c
atquick_sort.c
bits.c
countspace.c
ctof.c
hextoint.c
hist.c
indexof.c
itob.c
linkage.c
lzw.c
maxval.c
merge.c
merge_sort.c
peof.c
pointer.c
quick2.c
quick.c
quick_sort.c
reverse.c
rftoc.c
rmultiblank.c
rtabs.c
squeeze.c
structoo.c
syscall.c
tempfunc.c
tfc.c
word.c
#include <stdio.h>
main(){
float blank, tabs, newline;
int c;
while((c=getchar())!=EOF){
if(c==' ')
++blank;
if(c=='\t')
++tabs;
if(c=='\n')
++newline;
printf("%c",c);
}
printf("%.0f\t%.0f\t%.0f\n", blank, tabs, newline);
}
James Little