Mercurial > hg > toybox
comparison toys/pending/uuencode.c @ 828:1fdaba9a7124
uuencode/decode tests and tweaks from Erich Plondke.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 22 Mar 2013 00:26:12 -0500 |
parents | 0429050a224b |
children | ce155547bca2 |
comparison
equal
deleted
inserted
replaced
827:98c396477e0b | 828:1fdaba9a7124 |
---|---|
55 char *inbuf = toybuf; | 55 char *inbuf = toybuf; |
56 char *outbuf = toybuf+64; | 56 char *outbuf = toybuf+64; |
57 xprintf("begin-base64 744 %s\n",name); | 57 xprintf("begin-base64 744 %s\n",name); |
58 do { | 58 do { |
59 len = xread(fd,inbuf,48); | 59 len = xread(fd,inbuf,48); |
60 uuencode_b64_line(outbuf,inbuf,len); | 60 if (len > 0) uuencode_b64_line(outbuf,inbuf,len); |
61 } while (len > 0); | 61 } while (len > 0); |
62 xprintf("====\n"); | 62 xprintf("====\n"); |
63 } | 63 } |
64 | 64 |
65 | 65 |