cgi_error(3)

πŸ’– cgi_error(3) πŸ’–

okay bestie, gather round, because we're looking at cgi_error from the cgi/cgi.h crew (that's the ClearSilver manual, section 3, if you're keeping track) ✨


✨ NAME ✨

cgi_error β€” display an error string to the user 🫢


🌸 SYNOPSIS 🌸

#include <cgi/cgi.h>

void cgi_error (CGI *cgi, const char *fmt, ...)
                ATTRIBUTE_PRINTF(2,3);

like. she takes a CGI *, a format string, and vibes (aka varargs) πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • cgi β€” a pointer to a CGI struct, the main character of this whole operation πŸ‘‘
  • fmt β€” a printf style format string and arguments, so yes she formats, she's versatile πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: cgi_error will output a 500 error containing the specified error message. that's the whole move, no cap 😭

real talk though β€” this function is likely to be removed from future versions in favor of a user error mechanism. so enjoy her while she's here, but don't get too attached, fr fr πŸ’€

⭐ RETURN VALUE ⭐

None. she returns nothing. she simply does the thing and leaves ✨


🌈 SEE ALSO 🌈


k that's the whole page bestie, go forth and error responsibly 🧚

ClearSilver Β· 12 July 2007 Β· cgi_error(3) β€” mwah, catch you in the next manpage πŸ’œπŸŽ€