diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/fmtio/pargstr.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
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 |