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

PHYSFS_getSearchPath

Get the current search path.

Header File

Defined in <physfs.h>

Syntax

char ** PHYSFS_getSearchPath(void);

Return Value

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

Remarks

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:

for (char **i = PHYSFS_getSearchPath(); *i != NULL; i++) {
    printf("[%s] is in the search path.\n", *i);
}

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

Thread Safety

It is safe to call this function from any thread.

Version

This function is available since PhysicsFS 1.0.0.

See Also


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.