SDL_UnsetEnvironmentVariable(3)

πŸ’– NAME πŸ’–

SDL_UnsetEnvironmentVariable β€” bestie, it clears a variable from the environment. bye-bye, variable. πŸ’…


✨ SYNOPSIS ✨

#include <SDL3/SDL_stdinc.h>

bool SDL_UnsetEnvironmentVariable(SDL_Environment *env, const char *name);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • env β€” the environment you wanna modify, queen. that's the one getting the glow-down.
  • name β€” the name of the variable to unset. like, the actual name-name. πŸ‘‘

πŸ¦‹ RETURN VALUE πŸ¦‹

Returns true on success or false on failure, no cap. and if it flops? call SDL_GetError() for more information, she'll tell you what went wrong. 😭


🌸 THREAD SAFETY 🌸

It is safe to call this function from any thread. yes literally any thread, she's chill like that. 🫢


🌈 AVAILABILITY 🌈

This function is available since SDL 3.2.0. so if you're on something older, sorry babe, it's not giving. πŸ’€


⭐ SEE ALSO ⭐

not her linking to herself in SEE ALSO 😭 main character energy fr fr. anyway, go read the whole environment friend group, they're all iconic. πŸ’–

and that's the whole page, bestie!! brought to you by Simple Directmedia Layer, version SDL 3.4.18 β€” mwah, ty for reading, go unset some variables responsibly πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from