mess822_qp
Section: C Library Functions (3)
Index
Return to Main Contents
NAME
mess822_qp - decode and encode from/to quoted-printable
SYNTAX
#include <mess822.h>
int mess822_qpdecode(out,in,len,flag);
stralloc *out;
const char *in;
int len;
int flag;
int mess822_qpencode(out,in);
stralloc *out;
stralloc *in;
DESCRIPTION
mess822_qpdecode
takes the given quoted-printable encoded string available as
in
of length
len
on input and returns the corresponding (clear text)
character stream on output.
out
is '\0' terminated.
flag
is typically ' ' but could be set to '2047' in order
to provide a RFC 2047 encoding, which is used for the
'Subject:' line or file names.
The return value of
mess822_qpdecode
is '0' in case of success and might be '-1'
in case of memory shortage.
mess822_qpencode
takes an input character stream
in
and translates it into the quoted-printable format
potentially stripped down to the maximum line length
of 76 characters and to be supplied at
out
which is '\0' terminated.
On return, the number of characters written
is given. In case of memory shortage '-1' is provided.
SEE ALSO
mess822(3),
mess822_quote(3),
mess822_qp(3),
mess822_token(3),
RFC 2047.
Index
- NAME
-
- SYNTAX
-
- DESCRIPTION
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 14:39:30 GMT, December 08, 2024