bool has_prefix(const char *s, const char *prefix);
bool has_suffix(const char *s, const char *suffix);
-bool HasSuffixC(const char *s, int c);
+bool has_suffix_c(const char *s, int c);
void TrimSuffixC(char *s, int c);
void ToLower(char *s);
void ToUpper(char *s);
}
-/* HasSuffixC returns true if non-NULL string s ends with a c before the
+/* has_suffix_c returns true if non-NULL string s ends with a c before the
* terminating NUL. */
-bool HasSuffixC(const char *s, int c)
+bool has_suffix_c(const 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 = HasSuffixC(argv[0], 's');
+ all = has_suffix_c(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 = HasSuffixC(argv[0], 's');
+ all = has_suffix_c(argv[0], 's');
arguments = getarguments (invo_name, argc, argv, 1);
argp = arguments;