2 * getcgivars.c - routine to read CGI input variables into an array.
4 * Copyright 2002 Jonathan McDowell <noodles@earth.li>
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 * txt2html - Takes a string and converts it to HTML.
25 * @string: The string to HTMLize.
27 * Takes a string and escapes any HTML entities.
29 char *txt2html(const char *string);
32 * start_html - Start HTML output.
33 * @title: The title for the HTML.
35 * Takes a title string and starts HTML output, including the
36 * Content-Type header all the way up to <BODY>.
38 void start_html(const char *title);
41 * end_html - End HTML output.
43 * Ends HTML output - closes the BODY and HTML tags.
47 char x2c(const char *what);
48 void unescape_url(char *url);
49 char **getcgivars(int argc, char *argv[]);
52 * cleanupcgi - free the memory allocated for our CGI parameters.
53 * @cgivars: The CGI parameter list to free.
55 * Frees up the elements of the CGI parameter array and then frees the
58 void cleanupcgi(char **cgivars);
60 #endif /* __GETCGI_H_ */