Browse Source

accept longer input

master
Felix von Leitner 19 years ago
parent
commit
95ce7efa70
  1. 10
      test/b64encode.c

10
test/b64encode.c

@ -15,10 +15,12 @@ main(int argc,char* argv[]) {
}
if (argc<2) {
char src[1024];
int len=read(0,src,sizeof(src)-1);
if (len==-1) return(1);
src[len]=0;
b64encode(src);
int len;
while ((len=read(0,src,sizeof(src)-1))>0) {
if (len==-1) return(1);
src[len]=0;
b64encode(src);
}
}
return 0;
}

Loading…
Cancel
Save