Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

GB

Name: Malcolm 2011-12-01 3:29

UK-BESTEN_KODERZ_EVAH

Name: F r o z e n V o i d !!mJCwdV5J0Xy2A21 2011-12-01 6:22

>>2
#include "void.h"
STDSTART
u1r wordfile=file2p(argv[1]);
u8 file_sz=filesize(argv[1]);
u8 wordcount=0,i=0;
loop:
if(isspace(wordfile[i])){
wordcount++;
while(++i<file_sz&&isspace(wordfile[i])){;};
wordcount++;}
if(++i<file_sz){goto loop;}
printf("File:%s words:%llu",argv[1],wordcount);
STDEND

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List