aboutsummaryrefslogtreecommitdiff
path: root/sys/fmtio/pargstr.x
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/pargstr.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/fmtio/pargstr.x')
-rw-r--r--sys/fmtio/pargstr.x26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/fmtio/pargstr.x b/sys/fmtio/pargstr.x
new file mode 100644
index 00000000..59fc7433
--- /dev/null
+++ b/sys/fmtio/pargstr.x
@@ -0,0 +1,26 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <printf.h>
+
+# PARGSTR -- Pass a string type operand to printf.
+
+procedure pargstr (str)
+
+char str[ARB]
+int maxch
+include "fmt.com"
+
+begin
+ call fmt_read() # get format
+
+ if (decpl == USE_DEFAULT)
+ maxch = SZ_OBUF
+ else
+ maxch = abs (decpl)
+
+ if (width == USE_DEFAULT)
+ width = 0
+
+ call fmtstr (fd, str, col, fill_char, left_justify, maxch, width)
+ call fpradv ()
+end