X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/201663ffdecb6c21a2f48ad2e9b9eeaf85c029aa..b0aa8cdb1c264e42d4931ca24968689c73381278:/h/utils.h?ds=sidebyside diff --git a/h/utils.h b/h/utils.h index b57a4d88..c8384b39 100644 --- a/h/utils.h +++ b/h/utils.h @@ -63,7 +63,8 @@ char *find_str (const char [], size_t, const char *); char *rfind_str (const char [], size_t, const char *); char *nmh_strcasestr (const char *, const char *); -bool EndsWithC(char *s, int c); +bool HasPrefix(const char *s, const char *prefix); +bool HasSuffixC(const char *s, int c); void TrimSuffixC(char *s, int c); void ToLower(char *s); void ToUpper(char *s);