SDL_DestroyEnvironment(3)
π SDL_DestroyEnvironment(3) β the SDL3 FUNCTIONS girlies' edition β¨
okay so bestie, you've got a pile of environment variables and you need them GONE. not hidden, not forgotten β destroyed. and that's literally what this function is for. welcome to the SDL_DestroyEnvironment page, she's short but she's iconic π
πΈ NAME πΈ
SDL_DestroyEnvironment β Destroy a set of environment variables.
like, yeet the whole environment. bye. π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_stdinc.h>
void SDL_DestroyEnvironment(SDL_Environment *env);
no return value, no drama, she just does the thing π¦
π«Ά FUNCTION PARAMETERS π«Ά
envβ the environment to destroy. that's the one. hand her over and she's gone π₯
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread, as long as the environment is no longer in use.
no cap, that "as long as" part is doing a LOT of heavy lifting. if something else is still out here using that environment, don't. just don't π
β AVAILABILITY β
This function is available since SDL 3.2.0. so if you're on something older, sorry bestie, it's giving "not in your version" π
π SEE ALSO π
SDL_CreateEnvironment(3)β the one who made her in the first place. you can't destroy what you never created, iykyk π
that's the whole page fr fr. short, sweet, main character energy. go forth and free your environments responsibly π§
with love from the Simple Directmedia Layer girlies π β this is SDL 3.4.18, and yes this page is literally titled SDL_DestroyEnvironment(3), we keep it consistent around here πβ¨
π¦ 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