-
-/*--------------------------.
-| Is SUFFIX ending STRING? |
-`--------------------------*/
-
-int
-strsuffix (const char *string, const char *suffix)
-{
- size_t string_len = strlen (string);
- size_t suffix_len = strlen (suffix);
- if (suffix_len <= string_len)
- return !strcmp (string + string_len - suffix_len, suffix);
- else
- return 0;
-}
-
-