File:
[Public] /
libwww /
Library /
src /
HTUU.html
Revision
2.13:
download - view:
text,
annotated -
select for diffs
Sun Feb 16 18:43:12 1997 UTC (27 years, 3 months ago) by
frystyk
Branches:
MAIN
CVS tags:
Release-5-1l,
Release-5-1k,
Release-5-1j,
Release-5-1g,
Release-5-1e,
Release-5-1d,
Release-5-1b,
Release-5-1a,
Release-5-1,
HEAD
Changed name of sample coed library
<HTML>
<HEAD>
<TITLE>W3C Sample Code Library libwww UU ENCODING AND DECODING</TITLE>
<!-- Changed by: Henrik Frystyk Nielsen, 23-Mar-1996 -->
</HEAD>
<BODY>
<H1>Encoding to Printable Characters</H1>
<PRE>
/*
** (c) COPYRIGHT MIT 1995.
** Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>
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. <P>
This module is implemented by <A HREF="HTUU.c">HTUU.c</A>, and it is a
part of the <A HREF="http://www.w3.org/pub/WWW/Library/"> W3C
Sample Code Library</A>.
<PRE>
#ifndef HTUU_H
#define HTUU_H
extern int HTUU_encode (unsigned char * bufin, unsigned int nbytes,
char * bufcoded);
extern int HTUU_decode (char * bufcoded, unsigned char * bufplain,
int outbufsize);
#endif
</PRE>
<HR>
<ADDRESS>
@(#) $Id: HTUU.html,v 2.13 1997/02/16 18:43:12 frystyk Exp $
</ADDRESS>
</BODY>
</HTML>
Webmaster