wiki.icculus.org
[ front page | index | search | recent changes | git repo | offline html ]

PHYSFS_getDirSeparator

Get platform-dependent dir separator string.

Header File

Defined in <physfs.h>

Syntax

const char * PHYSFS_getDirSeparator(void);

Return Value

(const char *) Returns READ ONLY null-terminated string of platform's dir separator.

Remarks

This returns "\" on win32, "/" on Unix, and ":" on MacOS. It may be more than one character, depending on the platform, and your code should take that into account. Note that this is only useful for setting up the search/write paths, since access into those dirs always use '/' (platform-independent notation) to separate directories. This is also handy for getting platform-independent access when using stdio calls.

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since PhysicsFS 1.0.0.


CategoryAPI, CategoryAPIFunction, CategoryPhysicsFS


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.