Terminate a freshly allocated string as well.
[infodrom/cgilib] / cgiHeader.3
1 .\" cgiHeader - Print the HTTP header
2 .\" Copyright (c) 1998,9,2008 by Martin Schulze <joey@infodrom.org>
3 .\" 
4 .\" This program is free software; you can redistribute it and/or modify
5 .\" it under the terms of the GNU General Public License as published by
6 .\" the Free Software Foundation; either version 2 of the License, or
7 .\" (at your option) any later version.
8 .\" 
9 .\" This program is distributed in the hope that it will be useful,
10 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
11 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 .\" GNU General Public License for more details.
13 .\" 
14 .\" You should have received a copy of the GNU General Public License
15 .\" along with this program; if not, write to the Free Software Foundation
16 .\" Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 .\"
18 .TH cgiHeader 3 "6 April 2008" "CGI Library" "Programmer's Manual"
19 .SH NAME
20 cgiHeader \- Print the HTTP header
21 .SH SYNOPSYS
22 .nf
23 .B #include <cgi.h>
24 .sp
25 .B void cgiHeader ();
26 .fi
27 .SH DESCRIPTION
28 This routine just prints out the Contents-type: line to make the web
29 server happy.  By default the CGI library assumes that you return
30 regular HTML code and uses "text/html" as type.  If your CGI program
31 returns something else, you may set the type with
32 .BR cgiSetType (3).
33 You may also  add additional header lines by using
34 .BR cgiSetHeader (3).
35
36 .SH "RETURN VALUE"
37 This routine does not return a value.
38
39 .SH "AUTHOR"
40 This CGI library is written by Martin Schulze
41 <joey@infodrom.org>.  If you have additions or improvements
42 please get in touch with him.
43
44 .SH "SEE ALSO"
45 .BR cgiDebug (3),
46 .BR cgiSetHeader (3),
47 .BR cgiSetType (3),
48 .BR cgiInit (3),
49 .BR cgiGetValue (3).