cgiFree(3)
π cgiFree(3) π
okay bestie, listen up β this is a page from the Programmer's Manual, and it's about the little cleanup icon that is cgiFree. It's short, it's sweet, and it's the moment your CGI program gets its memory back. π§Ήβ¨
πΈ NAME πΈ
cgiFree β frees the CGI data structure π«Ά
π SYNOPSYS π
#include <cgi.h>
void cgiFree (s_cgi *parms);
π¦ DESCRIPTION π¦
So basically, this routine frees the memory that the CGI parsing routines allocated for you. Not only that β temporary files from CGI file upload also get removed. It's literally the opposite of cgiInit(3), the way cgiInit said "hey let's build a whole world" and cgiFree says "and now we're closing the group chat." π
After this routine was called, no variables, no cookies, no files, and no additional header lines are available. Gone. Poof. π The result type is also reset to "text/html" β so yeah, everything goes back to default, no cap.
β οΈ fr fr: call this one after you're done reading everything you needed. Once it runs, that data is not coming back. No takebacks. π
π AUTHOR π
This CGI library is written by Martin Schulze <joey@infodrom.org>. If you have additions or improvements, please get in touch with him β he genuinely wants to hear from you, and honestly? That's main character energy. π
π SEE ALSO π
cgiInit(3)cgiDebug(3)cgiHeader(3)cgiSetHeader(3)cgiSetType(3)cgiGetValue(3)cgiGetVariables(3)cgiGetCookie(3)cgiGetCookies(3)
and that's the whole page, bestie β you ate it, you understood it, you're now officially fluent in freeing your CGI data structure. π
This lil page came to you from the CGI Library, dated 6 April 2008, and yeah β it's still iconic all these years later. cgiFree(3) out. πβπ¦
π¦ where this page comes from
- ubuntu jammy: cgilib 0.6-1.1
- Copyright (c) 1999,2007,8 by Martin Schulze <joey@infodrom.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms