PHYSFS_getSearchPath

Function PHYSFS_getSearchPath 

Source
pub unsafe extern "C" fn PHYSFS_getSearchPath() -> *mut *mut c_char
Expand description

\fn char **PHYSFS_getSearchPath(void) \brief Get the current search path.

The default search path is an empty list.

The returned value is an array of strings, with a NULL entry to signify the end of the list:

\code char **i;

for (i = PHYSFS_getSearchPath(); *i != NULL; i++) printf(ā€œ[%s] is in the search path.\nā€, *i); \endcode

When you are done with the returned information, you may dispose of the resources by calling PHYSFS_freeList() with the returned pointer.

\return Null-terminated array of null-terminated strings. NULL if there was a problem (read: OUT OF MEMORY).

\sa PHYSFS_getSearchPathCallback \sa PHYSFS_addToSearchPath \sa PHYSFS_removeFromSearchPath