cgiFreeList(3)
cgiFreeList β frees memory used by a list π
okay bestie, welcome to cgiFreeList(3) from the Programmer's Manual, aka the little cleanup icon you call when you're done playing with a list. she's not glamorous, she's not complicated, she's just here to free stuff. and honestly? freeing stuff is the main character move. π«Ά
β¨ NAME β¨
cgiFreeList β frees the memory used by a list. that's it. that's the whole job. no cap. π
β¨ SYNOPSYS β¨
(yes the heading is spelled like that in the original, we don't gatekeep, we love her πΈ)
#include <cgi.h>
void cgiFreeList (char **list);
so you pull in <cgi.h> and then you've got this function, cgiFreeList, and it takes exactly one thing: list, which is a char **. that's a pointer to a pointer to a char, if you're keeping score. π
β¨ DESCRIPTION β¨
so here's the lore, bestie. the routines cgiGetVariables(3), cgiGetCookies(3), and cgiGetFiles(3) all hand you back a zero terminated list of characters. like, they give you a whole list, terminated by a zero, chef's kiss, iconic behavior. β¨
and then cgiFreeList is the one who cleans it up. this routine frees the memory allocated by those routines. so like β if you don't call her, that memory is just... sitting there. abandoned. not slaying. π
lowkey important: the memory you're freeing here is memory that was allocated bycgiGetVariables(3),cgiGetCookies(3)andcgiGetFiles(3). that's the whole point. she frees what they made. that's the vibe. π¦
β¨ AUTHOR β¨
this CGI library is written by Martin Schulze <joey@infodrom.org>. if you have additions or improvements, please get in touch with him. fr fr, he actually wants to hear from you. π
β¨ SEE ALSO β¨
go read those three, they're the ones making the lists that you're about to free. it's giving β¨ collaborative β¨. π
and that's the whole page, babe. π this one comes to you from the CGI Library, dated 6 April 2008 β yeah she's an elder but she still ate, and she's still out here freeing lists for you. mwah. πππΈ
π¦ 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