]> andersk Git - moira.git/commitdiff
added uppercase()
authormar <mar>
Thu, 2 Aug 1990 13:59:40 +0000 (13:59 +0000)
committermar <mar>
Thu, 2 Aug 1990 13:59:40 +0000 (13:59 +0000)
lib/strs.c

index 88b0178687fbe314621e552480b63676fd0493a6..d40a8e5de203dfb2d9f1dd08cc2aff12fde4dc15 100644 (file)
@@ -73,3 +73,17 @@ char *strtrim(save)
     *t = '\0';
     return s;
 }
+
+
+/* Modify a string for all of the letters to be uppercase. */
+
+char *uppercase(s)
+char *s;
+{
+    register char *p;
+
+    for (p = s; *p; p++)
+      if (islower(*p))
+       *p = toupper(*p);
+    return(s);
+}
This page took 0.455196 seconds and 5 git commands to generate.