cgi_vredirect(3)

✨ cgi_vredirect ✨

ok so bestie, gather round, because we're talking about cgi_vredirect from the cgi/cgi.h girlies β€” aka the ClearSilver era. it's giving "send an HTTP 302 redirect response" and it's lowkey iconic for it πŸ’…


🌸 NAME 🌸

cgi_vredirect β€” send an HTTP 302 redirect response πŸ¦‹


✨ SYNOPSIS ✨

#include <cgi/cgi.h>

void cgi_vredirect (CGI *cgi, int uri, const char *fmt, va_list ap);

no cap, that's the whole signature, copy it exactly bestie πŸ“‹


πŸŽ€ ARGUMENTS πŸŽ€

  • cgi β€” the cgi struct, the main character ofc πŸ‘‘
  • uri β€” tells you whether the URL is full (1) or path only (0)
  • fmt β€” a printf format string, yes the same vibe as always ✨
  • ap β€” the stdarg va_list, the lil bundle of args 🎁

πŸ’– DESCRIPTION πŸ’–

ok so cgi_vredirect is mostly used internally, like it's the backstage crew of the function world fr fr. but you can use it yourself if you need a varargs version of the function β€” that's literally its whole thing, the way that it takes a va_list and just goes πŸ’…


🌈 RETURN VALUE 🌈

None. she gives you nothing back, she's not about that life 😭


🫢 SEE ALSO 🫢

the whole friend group, no one left out, periodt:

(yes cgi_vredirect(3) is in its own SEE ALSO, she's self-aware, we love a confident queen πŸ’€)


gentle reminder bestie: every flag, arg and reference up there is verbatim from the real page β€” I'm hyping, not editing 🫢

ok and that's the whole thing!! this page comes to you from ClearSilver, dated 12 July 2007 β€” an absolute vintage baddie 🌸✨ she ate and left no crumbs, fr fr πŸ’–