cgiwrap_putenv(3)

πŸ’– cgiwrap_putenv(3) πŸ’–

okay so bestie, this one lives in the cgi/cgiwrap.h manual, and it's literally just a little glow-up wrapper around putenv. tiny page, huge slay. let's get into it 🫢


✨ NAME ✨

cgiwrap_putenv β€” wrap the putenv call


✨ SYNOPSIS ✨

#include <cgi/cgiwrap.h>

NEOERR *cgiwrap_putenv (const char *k, const char *v);

✨ ARGUMENTS ✨

  • k β€” the env var name. like, the name name. the label on the jar πŸŽ€
  • v β€” the new value for env var k. the actual contents, the main character of the jar ✨

✨ DESCRIPTION ✨

so cgiwrap_putenv wraps the putenv call. that's it, that's the vibe. it's mostly used by the cgi_debug_init function to cook up an artificial environment β€” fake it till you make it energy fr fr πŸ’…

here's the thing though, and it's giving iconic: this version differs from the system version by having separate arguments for the variable name and value. so instead of one big string you gotta hand-parse, you get k and v as two whole separate little guys. which makes life easier for the caller (usually β€” usually, bestie, they said usually 😭), and it keeps most wrapping callbacks from having to implement a parser just to pull the name and the value apart. no parser required, no suffering, we love that for us 🌸


✨ RETURN VALUE ✨

None. literally nothing. it's not returning anything, it's just out here doing its job and leaving πŸ‘‘


✨ SEE ALSO ✨


and that's the whole page, bestie!! 🌈 this lil cutie is from ClearSilver, dated 12 July 2007 β€” yes she's vintage, yes she still ate, periodt πŸ’œπŸ¦‹ go forth and set your env vars with separate arguments like the icon you are πŸ’–βœ¨