diff options
Diffstat (limited to 'sys/fmtio/pargstr.x')
-rw-r--r-- | sys/fmtio/pargstr.x | 26 |
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 |