aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/chrlwr.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fmtio/chrlwr.x')
-rw-r--r--sys/fmtio/chrlwr.x16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/fmtio/chrlwr.x b/sys/fmtio/chrlwr.x
new file mode 100644
index 00000000..a0050207
--- /dev/null
+++ b/sys/fmtio/chrlwr.x
@@ -0,0 +1,16 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <ctype.h>
+
+# CHRLWR -- Convert char to lower case
+
+char procedure chrlwr (ch)
+
+char ch
+
+begin
+ if (IS_UPPER (ch))
+ return (TO_LOWER (ch))
+ else
+ return (ch)
+end