cgi_destroy (3) - Linux Manuals

cgi_destroy: deallocate the data associated with a CGI

NAME

cgi_destroy - deallocate the data associated with a CGI

SYNOPSIS

#include <cgi/cgi.h>

void cgi_destroy (CGI **cgi);

ARGUMENTS

cgi - a pointer to a pointer to a CGI struct

DESCRIPTION

cgi_destroy will destroy all the data associated with a CGI, which mostly means the associated HDF and removal of any files that were uploaded via multipart/form-data. (Note that even in the event of a crash, these files will be deleted, as they were unlinked on creation and only exist because of the open file pointer)

RETURN VALUE

cgi - NULL on output