aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/chfetch.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fmtio/chfetch.x')
-rw-r--r--sys/fmtio/chfetch.x16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/fmtio/chfetch.x b/sys/fmtio/chfetch.x
new file mode 100644
index 00000000..f9ab4197
--- /dev/null
+++ b/sys/fmtio/chfetch.x
@@ -0,0 +1,16 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# CHFETCH -- Return the next character from a string, bump pointer.
+
+char procedure chfetch (str, ip, ch)
+
+char str[ARB], ch
+int ip
+
+begin
+ ch = str[ip]
+ if (ch != EOS)
+ ip = ip + 1
+
+ return (ch)
+end