mess822x
1.23
mess822x
Loading...
Searching...
No Matches
mess822x-1.23
src
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
9
stralloc
line
= {0};
10
stralloc
out
= {0};
11
int
match
;
12
13
int
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
}
mess822.h
mess822_qpdecode
int mess822_qpdecode(stralloc *, const char *, int, int)
Definition:
mess822_qp.c:103
out
stralloc out
Definition:
qpdecode.c:10
line
stralloc line
Definition:
qpdecode.c:9
match
int match
Definition:
qpdecode.c:11
WHO
#define WHO
Definition:
qpdecode.c:7
main
int main()
Definition:
qpdecode.c:13
Generated on Mon Mar 3 2025 20:48:08 for mess822x by
1.9.6