|
SYNOPSIS
#include "cgi.h"
void htpf_setapicp(cp)
APICP *cp;
DESCRIPTION The htpf_setapicp() function sets the APICP pointer to
be used by m-flag queries in the htpf() functions. By
default (or if APICPPN is given), these queries use an
APICP returned by openapicp().
The APICP structure pointed to by cp will be freed by
the next call to closecgi(); it is no longer owned by the
caller.
EXAMPLE
#include "cgi.h"
...
{
APICP *cp;
cp = openapicp();
/* Set our own delimiters: */
free(cp->sdexp);
cp->sdexp = strdup("<P>");
free(cp->edexp);
cp->edexp = strdup("<P>");
htpf_setapicp(cp);
htpf("Query results:<P>\n%mH", "magic", "An HTML document...");
}
SEE ALSO
htpf() openapicp()
Copyright © Thunderstone Software Last updated: Sun Mar 17 21:14:49 EDT 2013
|