DOKK / manpages / debian 11 / cgilib / cgiSetType.3.en
cgiSetType(3) Programmer's Manual cgiSetType(3)

cgiSetType - Specify the result type

#include <cgi.h>

int cgiSetType (char *type);

This routine sets the result type to type. This routine may be used optional. Default is "text/html". It will be used by cgiHeader(3).

On success 1 is returned, otherwise 0.

This CGI library is written by Martin Schulze <joey@infodrom.org>. If you have additions or improvements please get in touch with him.

cgiHeader(3), cgiSetHeader(3), cgiInit(3).

6 April 2008 CGI Library