SDL_CreateStorageDirectory(3)

πŸ’– SDL_CreateStorageDirectory(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, and today's main character is SDL_CreateStorageDirectory β€” she makes a directory in a writable storage container. that's it. that's the job. and she does it flawlessly. πŸ’…


✨ NAME ✨

SDL_CreateStorageDirectory β€” make a directory inside a writable storage container πŸŽ€


✨ SYNOPSIS ✨

#include <SDL3/SDL_storage.h>

bool SDL_CreateStorageDirectory(SDL_Storage *storage, const char *path);

like, look at her. two params. returns a bool. clean. iconic. no notes. πŸ¦‹


✨ FUNCTION PARAMETERS ✨

  • storage β€” a storage container. the vibes-holder. the place where the directory is gonna live 🫢
  • path β€” the path of the directory to create. yes queen, tell her where πŸ—ΊοΈ

✨ RETURN VALUE ✨

returns true on success, or false on failure 😭 and if it's a fail, pls call SDL_GetError() for more info β€” she will absolutely tell you what went wrong, no cap.


✨ AVAILABILITY ✨

this one has been around since SDL 3.2.0 ⭐ so if you're on anything older… bestie. upgrade. respectfully. πŸ™ˆ


✨ SEE ALSO ✨


and that's the whole page, fr fr. this beauty lives in the Simple Directmedia Layer collection, version SDL 3.4.18 β€” shoutout to the SDL girlies keeping the ecosystem fed, mwah πŸ“βœ¨ bye bestie, go create some directories πŸ’–

πŸ“¦ where this page comes from