bool EndsWithC(char *s, int c);
void TrimSuffixC(char *s, int c);
+void ToLower(char *s);
+void ToUpper(char *s);
/*
* See if a string contains 8 bit characters (use isascii() for the test).
}
+/* ToLower runs all of s through tolower(3). */
+void ToLower(char *s)
+{
+ unsigned char *b;
+
+ for (b = (unsigned char *)s; (*b = tolower(*b)); b++)
+ ;
+}
+
+
+/* ToUpper runs all of s through toupper(3). */
+void ToUpper(char *s)
+{
+ unsigned char *b;
+
+ for (b = (unsigned char *)s; (*b = toupper(*b)); b++)
+ ;
+}
+
+
int
nmh_init(const char *argv0, int read_context) {
int status = OK;