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 vark. 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 β¨
cgiwrap_iterenv(3)cgiwrap_putenv(3)cgiwrap_init_emu(3)cgiwrap_writef(3)cgiwrap_init_std(3)cgiwrap_writevf(3)cgiwrap_read(3)cgiwrap_write(3)cgiwrap_getenv
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 πβ¨
π¦ where this page comes from
- debian bookworm: clearsilver-dev 0.10.5-4+b5
- debian trixie: clearsilver-dev 0.10.5-6+b1
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- ubuntu jammy: clearsilver-dev 0.10.5-4build3
- ubuntu noble: clearsilver-dev 0.10.5-4build7
- ubuntu questing: clearsilver-dev 0.10.5-6build1
- ubuntu resolute: clearsilver-dev 0.10.5-7
- ubuntu stonking: clearsilver-dev 0.10.5-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms