From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- sys/fmtio/pargstr.x | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sys/fmtio/pargstr.x (limited to 'sys/fmtio/pargstr.x') 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 + +# 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 -- cgit