char *rfind_str (const char [], size_t, const char *);
char *nmh_strcasestr (const char *, const char *);
-bool EndsWithC(char *s, int c);
+bool HasSuffixC(char *s, int c);
void TrimSuffixC(char *s, int c);
void ToLower(char *s);
void ToUpper(char *s);
}
-/* EndsWithC returns true if non-NULL string s ends with a c before the
+/* HasSuffixC returns true if non-NULL string s ends with a c before the
* terminating NUL. */
-bool EndsWithC(char *s, int c)
+bool HasSuffixC(char *s, int c)
{
return *s && s[strlen(s) - 1] == c;
}
* If program was invoked with name ending
* in `s', then add switch `-all'.
*/
- all = EndsWithC(argv[0], 's');
+ all = HasSuffixC(argv[0], 's');
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;
* If program was invoked with name ending
* in `s', then add switch `-all'.
*/
- all = EndsWithC(argv[0], 's');
+ all = HasSuffixC(argv[0], 's');
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;