File: HTUU.html

package info (click to toggle)
cern-httpd 3.0A-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 5,392 kB
  • ctags: 6,554
  • sloc: ansic: 37,902; makefile: 1,746; perl: 535; csh: 167; sh: 143
file content (33 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<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>