~ubuntu-branches/ubuntu/edgy/lynx/edgy

« back to all changes in this revision

Viewing changes to WWW/Library/Implementation/HTUU.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-16 12:14:10 UTC
  • Revision ID: james.westby@ubuntu.com-20040916121410-cz1gu92c4nqfeyrg
Tags: upstream-2.8.5
ImportĀ upstreamĀ versionĀ 2.8.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*                              ENCODING TO PRINTABLE CHARACTERS
 
2
 
 
3
   File module provides functions HTUU_encode() and HTUU_decode() which convert a buffer
 
4
   of bytes to/from RFC 1113 printable encoding format.  This technique is similar to the
 
5
   familiar Unix uuencode format in that it maps 6 binary bits to one ASCII character (or
 
6
   more aptly, 3 binary bytes to 4 ASCII characters).  However, RFC 1113 does not use the
 
7
   same mapping to printable characters as uuencode.
 
8
 
 
9
 */
 
10
 
 
11
#ifndef HTUU_H
 
12
#define HTUU_H
 
13
 
 
14
#ifndef HTUTILS_H
 
15
#include <HTUtils.h>
 
16
#endif
 
17
 
 
18
PUBLIC int HTUU_encode PARAMS((unsigned char *bufin,
 
19
                               unsigned int nbytes,
 
20
                               char *bufcoded));
 
21
 
 
22
PUBLIC int HTUU_decode PARAMS((char *bufcoded,
 
23
                               unsigned char *bufplain,
 
24
                               int outbufsize));
 
25
 
 
26
#endif /* HTUU_H */