SDL_unsetenv_unsafe(3)
π SDL_unsetenv_unsafe(3) π
okay bestie, welcome to the SDL3 functions era of the manual pages, we're doing SDL_unsetenv_unsafe today and honestly? it's giving "delete but make it spicy" π
β¨ NAME β¨
SDL_unsetenv_unsafe β clear a variable from the environment. yeah. that's the whole job. she removes one (1) env var and she does not overthink it π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_stdinc.h>
int SDL_unsetenv_unsafe(const char *name);
π¦ FUNCTION PARAMETERS π¦
nameβ the name of the variable you want to unset. like, the actual string of the variable's name. that's it, that's the vibe π«Ά
β RETURN VALUE β
0β slay, it worked, success π-1β nope, error, something went wrong π
π THREAD SAFETY π
not thread safe. like, do NOT be out here calling this from multiple threads at once, that's main character behavior in the worst way π
the page literally says: consider using SDL_UnsetEnvironmentVariable() instead. so bestie, if you're threading, go there instead, fr fr.
π AVAILABILITY π
this one's been around since SDL 3.2.0. vintage-ish. iconic. π
π SEE ALSO π
SDL_UnsetEnvironmentVariable(3)β the thread-safe sibling, the responsible one, the one your mom likes π§
and that's the whole page, no cap β¨ this was Simple Directmedia Layer, SDL 3.4.18, and yes the function header up top is SDL_unsetenv_unsafe(3) so you know exactly where you are. bye bestie, go unset some variables responsibly ππΈ
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms