Debian Codegraph @

WWW/Library/Implementation/HTUU.h

raw
1 /*
2 * $LynxId: HTUU.h,v 1.11 2010/09/25 11:43:27 tom Exp $
3 *
4 * ENCODING TO PRINTABLE CHARACTERS
5
6 File module provides functions HTUU_encode() and HTUU_decode() which convert
7 a buffer of bytes to/from RFC 1113 printable encoding format. This
8 technique is similar to the familiar Unix uuencode format in that it maps 6
9 binary bits to one ASCII character (or more aptly, 3 binary bytes to 4 ASCII
10 characters). However, RFC 1113 does not use the same mapping to printable
11 characters as uuencode.
12
13 */
14
15 #ifndef HTUU_H
16 #define HTUU_H
17
18 #ifndef HTUTILS_H
19 #include <HTUtils.h>
20 #endif
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 extern int HTUU_encode(unsigned char *bufin,
26 size_t nbytes,
27 char *bufcoded);
28
29 extern int HTUU_decode(char *bufcoded,
30 unsigned char *bufplain,
31 int outbufsize);
32
33 #ifdef __cplusplus
34 }
35 #endif
36 #endif /* HTUU_H */