mess822x 1.23
mess822x
Loading...
Searching...
No Matches
qpdecode.c
Go to the documentation of this file.
1#include "buffer.h"
2#include "logmsg.h"
3#include "getln.h"
4#include "mess822.h"
5#include "exit.h"
6
7#define WHO "qpdecode"
8
9stralloc line = {0};
10stralloc out = {0};
12
13int main()
14{
15 for (;;) {
16 if (getln(buffer_0,&line,&match,'\n') == -1)
17 logmsg(WHO,111,FATAL,B("unable to read input: ",line.s));
18
19 if (!match) break;
20 if (mess822_qpdecode(&out,line.s,line.len,0) > 0)
21 buffer_put(buffer_1,out.s,out.len);
22 }
23
24 buffer_flush(buffer_1);
25 _exit(0);
26}
int mess822_qpdecode(stralloc *, const char *, int, int)
Definition: mess822_qp.c:103
stralloc out
Definition: qpdecode.c:10
stralloc line
Definition: qpdecode.c:9
int match
Definition: qpdecode.c:11
#define WHO
Definition: qpdecode.c:7
int main()
Definition: qpdecode.c:13