home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / www / library / implemen / htuu.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  950 b   |  28 lines

  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. #include "HTUtils.h"
  15.  
  16. PUBLIC int HTUU_encode PARAMS((unsigned char *bufin,
  17.                                unsigned int nbytes,
  18.                                char *bufcoded));
  19.  
  20. PUBLIC int HTUU_decode PARAMS((char *bufcoded,
  21.                                unsigned char *bufplain,
  22.                                int outbufsize));
  23.  
  24. #endif
  25. /*
  26.  
  27.    End of file.  */
  28.