cgiGetVariables(3)
π cgiGetVariables(3) β bestie edition π
okay so this is a page from the Programmer's Manual, and it's about cgiGetVariables, a lil function from the CGI Library. sit down, grab a strawberry π, we're doing this.
β¨ NAME β¨
cgiGetVariables β returns a list of CGI variables. that's it. that's the whole job. iconic behaviour honestly π
πΈ SYNOPSYS πΈ
#include <cgi.h>
char **cgiGetVariables (s_cgi *parms);
like. look at it. one function, one argument, zero drama. we love a low-maintenance queen π
π¦ DESCRIPTION π¦
okay so here's the tea, bestie. this routine returns a NULL terminated array of the CGI variables that are available. just the names of what's there, okay? it's giving guest list energy β it tells you who showed up, not what they're wearing.
so if you actually wanna know the value of one of those variables, you're gonna have to go use cgiGetValue(3). that's a whole separate function, we don't do that here. no cap.
and when you're done with the array β and you WILL be done with it β free that memory with cgiFreeList(3). do not skip this step. memory leaks are not the vibe. π
π RETURN VALUE π
- success era β you get a NULL terminated array of strings returned to you. the very last element is set to
NULL, so you know exactly where the party ends. periodt. - not so slay β if an error occurred, or if there are literally no variables available, you get
NULLback. no array, no list, nothing. justNULL. π
heads up bestie: NULL can mean error OR nothing available β same return, two different moods. check your setup either way.
π AUTHOR π
this CGI library is written by Martin Schulze <joey@infodrom.org>. and like, if you have additions or improvements, please get in touch with him! he literally said so. he wants to hear from you fr fr π«Ά
π SEE ALSO π
the whole friend group, go say hi:
and that's the page!! mwah π this was the CGI Library, dated 6 April 2008 β yeah she's an elder but she still ate. byeee, go free your lists πβ¨π
π¦ 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