diff options
author | pommicket <pommicket@gmail.com> | 2023-01-09 21:59:51 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-09 22:00:23 -0500 |
commit | 7f0255cb40bb85276191ec3ddffe507e53abf2ac (patch) | |
tree | 2376d10183d4085a7e8c85bba008f8ba3516d731 /util.h | |
parent | ce158f26b9136b3fc831c6325ad911e3bf403a4b (diff) |
fixed a bunch of windows stuff
also compile_commands.json does fix the usages problem!
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -76,6 +76,7 @@ const char32_t *util_mem32chr_const(const char32_t *s, char32_t c, size_t n); // does `str` have this prefix? bool str_has_prefix(const char *str, const char *prefix); // like str_has_prefix, but for paths. "ab/cd" is a path-prefix of "ab/cd/ef", but not "ab/cde". +// also handles the fact that \ and / are the same on windows bool str_has_path_prefix(const char *path, const char *prefix); // are these two strings equal? bool streq(const char *a, const char *b); |