]> diplodocus.org Git - nmh/blob - sbr/fmt_rfc2047.h
Improve fmttest output
[nmh] / sbr / fmt_rfc2047.h
1 /* fmt_rfc2047.h -- decode RFC-2047 header format
2 *
3 * This code is Copyright (c) 2017, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information. */
6
7 /*
8 * Decode two characters into their quoted-printable representation.
9 *
10 * Arguments are:
11 *
12 * byte1 - First character of Q-P representation
13 * byte2 - Second character of Q-P representation
14 *
15 * Returns the decoded value, -1 if the conversion failed.
16 */
17 int decode_qp(unsigned char byte1, unsigned char byte2) CONST;
18
19 int decode_rfc2047(char *, char *, size_t);