cscvs to tla changeset 4
[onak.git] / getcgi.h
1 #ifndef __GETCGI_H_
2 #define __GETCGI_H_
3
4 /**
5  *      txt2html - Takes a string and converts it to HTML.
6  *      @string: The string to HTMLize.
7  *
8  *      Takes a string and escapes any HTML entities.
9  */
10 char *txt2html(const char *string);
11
12 /*
13  *      start_html - Start HTML output.
14  *      @title: The title for the HTML.
15  *
16  *      Takes a title string and starts HTML output, including the
17  *      Content-Type header all the way up to <BODY>.
18  */
19 void start_html(const char *title);
20
21 /*
22  *      end_html - End HTML output.
23  *
24  *      Ends HTML output - closes the BODY and HTML tags.
25  */
26 void end_html(void);
27
28 char x2c(const char *what); 
29 void unescape_url(char *url); 
30 char **getcgivars(int argc, char *argv[]);
31
32 #endif /* __GETCGI_H_ */