File: getcgi.h

package info (click to toggle)
onak 0.3.2-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 892 kB
  • ctags: 514
  • sloc: ansic: 7,879; perl: 223; makefile: 87; sh: 25; sql: 21
file content (41 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (4)
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
34
35
36
37
38
39
40
41
#ifndef __GETCGI_H_
#define __GETCGI_H_

/**
 *	txt2html - Takes a string and converts it to HTML.
 *	@string: The string to HTMLize.
 *
 *	Takes a string and escapes any HTML entities.
 */
char *txt2html(const char *string);

/*
 *	start_html - Start HTML output.
 *	@title: The title for the HTML.
 *
 *	Takes a title string and starts HTML output, including the
 *	Content-Type header all the way up to <BODY>.
 */
void start_html(const char *title);

/*
 *	end_html - End HTML output.
 *
 *	Ends HTML output - closes the BODY and HTML tags.
 */
void end_html(void);

char x2c(const char *what); 
void unescape_url(char *url); 
char **getcgivars(int argc, char *argv[]);

/**
 *	cleanupcgi - free the memory allocated for our CGI parameters.
 *	@cgivars: The CGI parameter list to free.
 *
 *	Frees up the elements of the CGI parameter array and then frees the
 *	array.
 */
void cleanupcgi(char **cgivars);

#endif /* __GETCGI_H_ */