aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/scan.com
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/fmtio/scan.com
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/fmtio/scan.com')
-rw-r--r--sys/fmtio/scan.com10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/fmtio/scan.com b/sys/fmtio/scan.com
new file mode 100644
index 00000000..cb60824c
--- /dev/null
+++ b/sys/fmtio/scan.com
@@ -0,0 +1,10 @@
+# SCAN.COM -- Global common for the scan family of routines.
+
+define SZ_SCANBUF 4096
+
+int sc_ip # char pointer into lbuf
+int sc_ntokens # keep track of successful conversions
+bool sc_stopscan # set if conversion is unsuccessful
+char sc_scanbuf[SZ_SCANBUF] # line buffer for scan procedures
+
+common /scncom/ sc_ip, sc_ntokens, sc_stopscan, sc_scanbuf