This commit is contained in:
Philippe Teuwen 2019-04-11 00:10:21 +02:00
commit 35e97ba96a
16 changed files with 31 additions and 27 deletions

View file

@ -39,7 +39,7 @@
static int CmdHelp(const char *Cmd);
int str_ends_with(const char *str, const char *suffix) {
static int str_ends_with(const char *str, const char *suffix) {
if (str == NULL || suffix == NULL)
return 0;
@ -56,7 +56,7 @@ int str_ends_with(const char *str, const char *suffix) {
/**
* Utility to check the ending of a string (used to check file suffix)
*/
bool endsWith(const char *base, const char *str) {
static bool endsWith(const char *base, const char *str) {
int blen = strlen(base);
int slen = strlen(str);
return (blen >= slen) && (0 == strcmp(base + blen - slen, str));