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