File:  [Public] / libwww / Library / src / HTUU.html
Revision 2.1: download - view: text, annotated - select for diffs
Mon Oct 4 19:37:30 1993 UTC (30 years, 8 months ago) by luotonen
Branches: MAIN
CVS tags: v2/17, v2/16pre2, v2/16pre1, v2/15, v2/14, v2/13, v2/12a, cern-update, HEAD
Added first version of access authorization in.

<HEAD>
</HEAD>
<BODY>

<H1>Encoding to Printable Characters</H1>

File module provides functions <CODE>HTUU_encode()</CODE> and
<CODE>HTUU_decode()</CODE> which convert a buffer of bytes to/from RFC
1113 printable encoding format.

This technique is similar to the familiar Unix uuencode format in that
it maps 6 binary bits to one ASCII character (or more aptly, 3 binary
bytes to 4 ASCII characters).  However, RFC 1113 does not use the same
mapping to printable characters as uuencode.

<PRE>
#ifndef HTUU_H
#define HTUU_H

#include "HTUtils.h"

PUBLIC int HTUU_encode PARAMS((unsigned char *bufin,
			       unsigned int nbytes,
			       char *bufcoded));

PUBLIC int HTUU_decode PARAMS((char *bufcoded,
			       unsigned char *bufplain,
			       int outbufsize));

#endif
</PRE>
End of file.
</BODY>

Webmaster