Prefer inline for single liner

This commit is contained in:
Arun Prakash Jana 2021-10-20 20:29:15 +05:30
parent 24b71bcf1f
commit 53fbab1f44
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 3 additions and 3 deletions

View File

@ -1016,7 +1016,7 @@ static bool is_suffix(const char *restrict str, const char *restrict suffix)
return (xstrcmp(str + (lenstr - lensuffix), suffix) == 0);
}
static bool is_prefix(const char *restrict str, const char *restrict prefix, size_t len)
static inline bool is_prefix(const char *restrict str, const char *restrict prefix, size_t len)
{
return !strncmp(str, prefix, len);
}