comparison util.h @ 1485:369da70ee2c2 nuklear_ui

Filter file list in Nuklear UI
author Michael Pavone <pavone@retrodev.com>
date Sun, 26 Nov 2017 18:33:36 -0800
parents d82af64c94d2
children c416ace65ff1
comparison
equal deleted inserted replaced
1484:d82af64c94d2 1485:369da70ee2c2
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 *path);
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);
45 //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
46 char *path_dirname(char *path); 48 char *path_dirname(char *path);
47 //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
48 uint32_t nearest_pow2(uint32_t val); 50 uint32_t nearest_pow2(uint32_t val);
49 //Should be called by main with the value of argv[0] for use by get_exe_dir 51 //Should be called by main with the value of argv[0] for use by get_exe_dir