SDL_CloseStorage(3)
π SDL_CloseStorage(3) π
okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, where today's main character is SDL_CloseStorage π
β¨ NAME β¨
SDL_CloseStorage β closes and frees a storage container. that's it, that's the whole job. she opens, she closes, she frees, she leaves no crumbs π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_storage.h>
bool SDL_CloseStorage(SDL_Storage *storage);
π¦ FUNCTION PARAMETERS π¦
storageβ a storage container to close. like, the one you want to shut down. hand her over π«Ά
β RETURN VALUE β
Returns true if the container was freed with no errors, and false otherwise. if you got false, go call SDL_GetError() for more information, she'll tell you what went down π
and listen, this part is important so i'm gonna say it loud: even if the function returns an error, the container data will be freed. the error is only for informational purposes. so like, the vibe is "she did the thing, but she's also telling you about it." no leaks, just receipts π
π AVAILABILITY π
This function is available since SDL 3.2.0. if your SDL is older than that, no she isn't, bestie π
π SEE ALSO π
like, the whole open-and-close friend group. you can't close if you never opened, iykyk β¨
Simple Directmedia Layer Β· SDL 3.4.18 Β· SDL_CloseStorage(3)
that's the page, that's the energy, go free your storage containers 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