Mercurial > repos > blastem
comparison util.h @ 1523:c416ace65ff1 nuklear_ui
Fix const correctness for path_extension
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 06 Feb 2018 22:44:11 -0800 |
parents | 369da70ee2c2 |
children | 4f6e8acd7b6a |
comparison
equal
deleted
inserted
replaced
1522:63659fb92db4 | 1523:c416ace65ff1 |
---|---|
39 //Determines whether a path is considered an absolute path on the current platform | 39 //Determines whether a path is considered an absolute path on the current platform |
40 char is_absolute_path(char *path); | 40 char is_absolute_path(char *path); |
41 //Returns the basename of a path with th extension (if any) stripped | 41 //Returns the basename of a path with th extension (if any) stripped |
42 char * basename_no_extension(char *path); | 42 char * basename_no_extension(char *path); |
43 //Returns the extension from a path or NULL if there is no extension | 43 //Returns the extension from a path or NULL if there is no extension |
44 char *path_extension(char *path); | 44 char *path_extension(char const *path); |
45 //Returns true if the given path matches one of the extensions in the list | 45 //Returns true if the given path matches one of the extensions in the list |
46 uint8_t path_matches_extensions(char *path, char **ext_list, uint32_t num_exts); | 46 uint8_t path_matches_extensions(char *path, char **ext_list, uint32_t num_exts); |
47 //Returns the directory portion of a path or NULL if there is no directory part | 47 //Returns the directory portion of a path or NULL if there is no directory part |
48 char *path_dirname(char *path); | 48 char *path_dirname(char *path); |
49 //Gets the smallest power of two that is >= a certain value, won't work for values > 0x80000000 | 49 //Gets the smallest power of two that is >= a certain value, won't work for values > 0x80000000 |