table of contents
- trixie 3.2.10+ds-1
 - testing 3.2.26+ds-1
 - unstable 3.2.26+ds-2
 - experimental 3.3.2+git20251103~dc5b136+ds-1
 
| SDL_GetCurrentDirectory(3) | SDL3 FUNCTIONS | SDL_GetCurrentDirectory(3) | 
NAME¶
SDL_GetCurrentDirectory - Get what the system believes is the "current working directory."
SYNOPSIS¶
#include <SDL3/SDL_filesystem.h>
char * SDL_GetCurrentDirectory(void);
DESCRIPTION¶
For systems without a concept of a current working directory, this will still attempt to provide something reasonable.
SDL does not provide a means to _change_ the current working directory; for platforms without this concept, this would cause surprises with file access outside of SDL.
The returned path is guaranteed to end with a path separator ('\\' on Windows, '/' on most other platforms).
RETURN VALUE¶
when it is no longer needed.
AVAILABILITY¶
This function is available since SDL 3.2.0.
| SDL 3.2.26 | Simple Directmedia Layer |