diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-30 13:49:01 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-12-30 13:49:01 -0500 |
commit | 3d56cc1986f855f91844915e35d0225bd8e07109 (patch) | |
tree | 0ab06288e6a4d699b55b68931487e5a6ab889c3f /util.c | |
parent | f10f07553e599f1320afbaa2dfeb0b267139cd74 (diff) |
more config
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -42,3 +42,7 @@ static char32_t const *util_mem32chr_const(char32_t const *s, char32_t c, size_t static bool streq(char const *a, char const *b) { return strcmp(a, b) == 0; } + +static bool util_is_prefix(char const *str, char const *prefix) { + return strncmp(str, prefix, strlen(prefix)) == 0; +} |