#define TRUNCCPY(dst, src) trunccpy(dst, src, sizeof (dst))
bool has_prefix(const char *s, const char *prefix);
-bool HasSuffix(const char *s, const char *suffix);
+bool has_suffix(const char *s, const char *suffix);
bool HasSuffixC(const char *s, int c);
void TrimSuffixC(char *s, int c);
void ToLower(char *s);
}
-/* HasSuffix returns true if non-NULL s ends with non-NULL suffix. */
-bool HasSuffix(const char *s, const char *suffix)
+/* has_suffix returns true if non-NULL s ends with non-NULL suffix. */
+bool has_suffix(const char *s, const char *suffix)
{
size_t ls, lsuf;
fix_filename_param (char *name, char *value, PM *first_pm, PM *last_pm) {
int fixed = 0;
- if (has_prefix(value, "=?") && HasSuffix(value, "?=")) {
+ if (has_prefix(value, "=?") && has_suffix(value, "?=")) {
/* Looks like an RFC 2047 encoded parameter. */
char decoded[PATH_MAX + 1];