File:  [Public] / libwww / Library / src / HTWSRC.html
Revision 2.17: download - view: text, annotated - select for diffs
Sun Feb 16 18:43:15 1997 UTC (27 years, 4 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 WAIS</TITLE>
<!-- Changed by: Henrik Frystyk Nielsen, 23-Mar-1996 -->
</HEAD>
<BODY>

<H1>WAIS Source file parser</H1>

<PRE>
/*
**	(c) COPYRIGHT MIT 1995.
**	Please first read the full copyright statement in the file COPYRIGH.
*/
</PRE>

This converter returns a <A HREF="HTStream.html">stream object</A>
into which a <A
HREF="http://www.w3.org/pub/Products/WAIS/Overview.html">WAIS</A>
source file can be written.  The result is put via a <A
HREF="HTStruct.html">structured stream</A> into whatever format was
required for the output stream.<P> See also: <A NAME="z4"
HREF="HTWAIS.html">HTWAIS</A> protocol interface module.<P>

This module is implemented by <A HREF="HTWSRC.c">HTWSRC.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 HTWSRC_H
#define HTWSRC_H

#include "HTFormat.h"

extern  HTConverter HTWSRCConvert;
</PRE>

<H2>Escaping Strings</H2>

HTDeSlash takes out the invlaid characters in a URL path ELEMENT by
converting them into hex-escaped characters.  HTEnSlash does the
reverse.<P> Each returns a pointer to a newly allocated string which
must eventually be freed by the caller.

<PRE>
extern char * HTDeSlash (const char * str);

extern char * HTEnSlash (const char * str);

#endif
</PRE>

<HR>
<ADDRESS>
@(#) $Id: HTWSRC.html,v 2.17 1997/02/16 18:43:15 frystyk Exp $
</ADDRESS>
</BODY>
</HTML>

Webmaster