15int main(
int argc,
char *
const argv[])
21 while ((opt = getoptb(argc,(
char **)argv,
"u")) != opteof)
23 case 'u':
flag = 4648;
break;
24 default : logmsg(
WHO,100,USAGE,
"b64encode [-u] (reading from STDIN)");
28 if (getln(buffer_0,&
line,&
match,
'\n') == -1)
29 logmsg(
WHO,111,FATAL,B(
"unable to read input: ",
line.s));
30 if (!stralloc_cat(&
temp,&
line)) _exit(1);
36 if (r > 0) buffer_put(buffer_1,
out.s,
out.len);
37 buffer_put(buffer_1,
"\n",1);
38 buffer_flush(buffer_1);
int mess822_b64urlencode(stralloc *, stralloc *)
int mess822_b64encode(stralloc *, stralloc *)