|
N64FlashcartMenu
|
Path manipulation functions. More...
Macros | |
| #define | PATH_CAPACITY_INITIAL 255 |
| #define | PATH_CAPACITY_ALIGNMENT 32 |
Functions | |
| path_t * | path_create (const char *string) |
| Create a new path structure. | |
| path_t * | path_init (const char *prefix, char *string) |
| Initialize a new path structure with a prefix and an initial string. | |
| void | path_free (path_t *path) |
| Free the memory allocated for the path structure. | |
| path_t * | path_clone (path_t *path) |
| Clone the path structure. | |
| path_t * | path_clone_push (path_t *path, char *string) |
| Clone the path structure and push a string to the cloned path. | |
| char * | path_get (path_t *path) |
| Get the current path string. | |
| char * | path_last_get (path_t *path) |
| Get the last component of the path. | |
| bool | path_is_root (path_t *path) |
| Check if the path is the root path. | |
| void | path_pop (path_t *path) |
| Pop the last component from the path. | |
| void | path_push (path_t *path, char *string) |
| Push a string to the path. | |
| void | path_push_subdir (path_t *path, char *string) |
| Push a subdirectory to the path. | |
| char * | path_ext_get (path_t *path) |
| Get the file extension from the path. | |
| void | path_ext_remove (path_t *path) |
| Remove the file extension from the path. | |
| void | path_ext_replace (path_t *path, char *ext) |
| Replace the file extension in the path. | |
| bool | path_has_value (path_t *path) |
| Check if the path has a value. | |
| bool | path_are_match (path_t *left, path_t *right) |
| Check if two paths match. | |
Path manipulation functions.
| path_t * path_create | ( | const char * | string | ) |
Create a new path structure.
Create a new path object.
| string | Initial path string. |
| path_t * path_init | ( | const char * | prefix, |
| char * | string ) |
Initialize a new path structure with a prefix and an initial string.
Initialize a path object with a prefix and string.
| prefix | Path prefix. |
| string | Initial path string. |
| void path_free | ( | path_t * | path | ) |
Free the memory allocated for the path structure.
Free a path object.
| path | Pointer to the path structure. |
Clone the path structure.
Clone a path object.
| path | Pointer to the path structure to clone. |
Clone the path structure and push a string to the cloned path.
Clone a path object and push a string onto it.
| path | Pointer to the path structure to clone. |
| string | String to push to the cloned path. |
| char * path_get | ( | path_t * | path | ) |
Get the current path string.
Get the string representation of a path.
| path | Pointer to the path structure. |
| char * path_last_get | ( | path_t * | path | ) |
Get the last component of the path.
Get the last component of a path.
| path | Pointer to the path structure. |
| bool path_is_root | ( | path_t * | path | ) |
Check if the path is the root path.
Check if the path is the root directory.
| path | Pointer to the path structure. |
| void path_pop | ( | path_t * | path | ) |
Pop the last component from the path.
| path | Pointer to the path structure. |
| void path_push | ( | path_t * | path, |
| char * | string ) |
Push a string to the path.
Push a string onto the path.
| path | Pointer to the path structure. |
| string | String to push to the path. |
| void path_push_subdir | ( | path_t * | path, |
| char * | string ) |
Push a subdirectory to the path.
Push a subdirectory onto the path.
| path | Pointer to the path structure. |
| string | Subdirectory string to push to the path. |
| char * path_ext_get | ( | path_t * | path | ) |
Get the file extension from the path.
| path | Pointer to the path structure. |
| void path_ext_remove | ( | path_t * | path | ) |
Remove the file extension from the path.
| path | Pointer to the path structure. |
| void path_ext_replace | ( | path_t * | path, |
| char * | ext ) |
Replace the file extension in the path.
Replace the file extension of the path.
| path | Pointer to the path structure. |
| ext | New file extension. |
| bool path_has_value | ( | path_t * | path | ) |
Check if the path has a value.
| path | Pointer to the path structure. |