



Synopsys:
     #include <stdio.h>

     int printf(const char *FORMAT [, ARG, ...]);
     int fprintf(FILE *FD, const char *FORMAT [, ARG, ...]);
     int sprintf(char *STR, const char *FORMAT [, ARG, ...]);
     int asprintf(char **STRP, const char *FORMAT [, ARG, ...]);
     int snprintf(char *STR, size_t SIZE, const char *FORMAT [, ARG, ...]);
   
Description:
'printf' accepts a series of arguments, applies to each a format
specifier from *FORMAT, and writes the formatted data to stdout,
terminated with a null character.  The behavior of printf is
undefined if there are not enough arguments for the format.  printf
returns when it reaches the end of the format string.  If there are
more arguments than the format requires, excess arguments are ignored.

   'fprintf', 'asprintf', 'sprintf' and 'snprintf' are identical to
printf, other than the destination of the formatted output: fprintf
sends the output to a specified file FD, while asprintf stores the
output in a dynamically allocated buffer, while sprintf stores the
output in the specified char array STR and snprintf limits number of
characters written to STR to at most SIZE (including terminating 0).
For sprintf and snprintf, the behavior is undefined if the output
*STR overlaps with one of the arguments. For asprintf, STRP points
to a pointer to char which is filled in with the dynamically allocated
buffer.  FORMAT is a pointer to a charater string containing two types
of objects: ordinary characters (other than %), which are copied
unchanged to the output, and conversion specifications, each of which
is introduced by %. (To include % in the output, use %% in the
format string.) A conversion specification has the following form:

            %[FLAGS][WIDTH][.PREC][SIZE][TYPE]

   The fields of the conversion specification have the following
meanings:

   * FLAGS

     an optional sequence of characters which control output
     justification, numeric signs, decimal points, trailing zeroes, and
     octal and hex prefixes.  The flag characters are minus (-), plus
     (+), space ( ), zero (0), and sharp (#).  They can appear in
     any combination.

    -
          The result of the conversion is left justified, and the right
          is padded with blanks.  If you do not use this flag, the
          result is right justified, and padded on the left.

    +
          The result of a signed conversion (as determined by TYPE)
          will always begin with a plus or minus sign.  (If you do not
          use this flag, positive values do not begin with a plus sign.)

    " " (space)
          If the first character of a signed conversion specification
          is not a sign, or if a signed conversion results in no
          characters, the result will begin with a space.  If the space
          ( ) flag and the plus (+) flag both appear, the space flag
          is ignored.

    0
          If the TYPE character is d, i, o, u, x, X, e,
          E, f, g, or G: leading zeroes, are used to pad the
          field width (following any indication of sign or base); no
          spaces are used for padding.  If the zero (0) and minus
          (-) flags both appear, the zero (0) flag will be ignored.
          For d, i, o, u, x, and X conversions, if a
          precision PREC is specified, the zero (0) flag is ignored.
          Note that 0 is interpreted as a flag, not as the beginning
          of a field width.

    #
          The result is to be converted to an alternative form,
          according to the next character:

         0
               increases precision to force the first digit of the
               result to be a zero.

         x
               a non-zero result will have a 0x prefix.

         X
               a non-zero result will have a 0X prefix.

         e, E or f
               The result will always contain a decimal point even if
               no digits follow the point.  (Normally, a decimal point
               appears only if a digit follows it.)  Trailing zeroes
               are removed.

         g or G
               same as e or E, but trailing zeroes are not removed.

         all others
               undefined.



   * WIDTH

     WIDTH is an optional minimum field width.  You can either specify
     it directly as a decimal integer, or indirectly by using instead
     an asterisk (*), in which case an int argument is used as the
     field width.  Negative field widths are not supported; if you
     attempt to specify a negative field width, it is interpreted as a
     minus (-) flag followed by a positive field width.

   * PREC

     an optional field; if present, it is introduced with . (a
     period). This field gives the maximum number of characters to
     print in a conversion; the minimum number of digits of an integer
     to print, for conversions with TYPE d, i, o, u, x, and
     X; the maximum number of significant digits, for the g and G
     conversions; or the number of digits to print after the decimal
     point, for e, E, and f conversions.  You can specify the
     precision either directly as a decimal integer or indirectly by
     using an asterisk (*), in which case an int argument is used
     as the precision.  Supplying a negative precision is equivalent to
     omitting the precision.  If only a period is specified the
     precision is zero.  If a precision appears with any other
     conversion TYPE than those listed here, the behavior is undefined.

   * SIZE

     h, l, and L are optional size characters which override the
     default way that printf interprets the data type of the
     corresponding argument.  h forces the following d, i, o,
     u, x or X conversion TYPE to apply to a short or unsigned
     short. h also forces a following n TYPE to apply to a pointer
     to a short. Similarily, an l forces the following d, i,
     o, u, x or X conversion TYPE to apply to a long or
     unsigned long.  l also forces a following n TYPE to apply to
     a pointer to a long.  l with c, s is equivalent to C,
     S respectively.  If an h or an l appears with another
     conversion specifier, the behavior is undefined.  L forces a
     following e, E, f, g or G conversion TYPE to apply to a
     long double argument.  If L appears with any other conversion
     TYPE, the behavior is undefined.

   * TYPE

     TYPE specifies what kind of conversion printf performs.  Here is
     a table of these:

    %
          prints the percent character (%)

    c
          prints ARG as single character

    C
          prints wchar_t ARG as single multibyte character

    s
          prints characters until precision is reached or a null
          terminator is encountered; takes a string pointer

    S
          converts wchar_t characters to multibyte output characters
          until precision is reached or a null wchar_t terminator is
          encountered; takes a wchar_t pointer

    d
          prints a signed decimal integer; takes an int (same as i)

    i
          prints a signed decimal integer; takes an int (same as d)

    o
          prints a signed octal integer; takes an int

    u
          prints an unsigned decimal integer; takes an int

    x
          prints an unsigned hexadecimal integer (using abcdef as
          digits beyond 9); takes an int

    X
          prints an unsigned hexadecimal integer (using ABCDEF as
          digits beyond 9); takes an int

    f
          prints a signed value of the form [-]9999.9999; takes a
          floating-point number

    e
          prints a signed	value of the form
          [-]9.9999e[+|-]999; takes a floating-point number

    E
          prints the same way as e, but using E to introduce the
          exponent; takes a floating-point number

    g
          prints a signed value in either f or e form, based on
          given value and precision--trailing zeros and the decimal
          point are printed only if necessary; takes a floating-point
          number

    G
          prints the same way as g, but using E for the exponent if
          an exponent is needed; takes a floating-point number

    n
          stores (in the same object) a count of the characters written;
          takes a pointer to int

    p
          prints a pointer in an implementation-defined format.  This
          implementation treats the pointer as an unsigned long (same
          as Lu).


Returns:
sprintf and asprintf return the number of bytes in the output
string, save that the concluding NULL is not counted.  printf and
fprintf return the number of characters transmitted.  If an error
occurs, printf and fprintf return EOF and asprintf returns -1.
No error returns occur for sprintf.

Portability:
The  ANSI C standard specifies that implementations must support at
least formatted output of up to 509 characters.

   Supporting OS subroutines required: close, fstat, isatty,
lseek, read, sbrk, write.

 





Synopsys:
     #include <stdio.h>

     int scanf(const char *FORMAT [, ARG, ...]);
     int fscanf(FILE *FD, const char *FORMAT [, ARG, ...]);
     int sscanf(const char *STR, const char *FORMAT
         [, ARG, ...]);

     int _scanf_r(struct _reent *PTR, const char *FORMAT [, ARG, ...]);
     int _fscanf_r(struct _reent *PTR, FILE *FD, const char *FORMAT [, ARG, ...]);
     int _sscanf_r(struct _reent *PTR, const char *STR, const char *FORMAT
         [, ARG, ...]);
   
Description:
'scanf' scans a series of input fields from standard input, one
character at a time.  Each field is interpreted according to a format
specifier passed to scanf in the format string at *FORMAT.  scanf
stores the interpreted input from each field at the address passed to
it as the corresponding argument following FORMAT.  You must supply the
same number of format specifiers and address arguments as there are
input fields.

   There must be sufficient address arguments for the given format
specifiers; if not the results are unpredictable and likely
disasterous.  Excess address arguments are merely ignored.

   scanf often produces unexpected results if the input diverges from
an expected pattern. Since the combination of gets or fgets
followed by sscanf is safe and easy, that is the preferred way to be
certain that a program is synchronized with input at the end of a line.

   'fscanf' and 'sscanf' are identical to scanf, other than the
source of input: fscanf reads from a file, and sscanf from a string.

   The routines '_scanf_r', '_fscanf_r', and '_sscanf_r' are reentrant
versions of scanf, fscanf, and sscanf that take an additional
first argument pointing to a reentrancy structure.

   The string at *FORMAT is a character sequence composed of zero or
more directives. Directives are composed of one or more whitespace
characters, non-whitespace characters, and format specifications.

   Whitespace characters are blank ( ), tab (\t), or newline (\n).
When scanf encounters a whitespace character in the format string it
will read (but not store) all consecutive whitespace characters up to
the next non-whitespace character in the input.

   Non-whitespace characters are all other ASCII characters except the
percent sign (%).  When scanf encounters a non-whitespace character
in the format string it will read, but not store a matching
non-whitespace character.

   Format specifications tell scanf to read and convert characters
from the input field into specific types of values, and store then in
the locations specified by the address arguments.

   Trailing whitespace is left unread unless explicitly matched in the
format string.

   The format specifiers must begin with a percent sign (%) and have
the following form:

            %[*][WIDTH][SIZE]TYPE

   Each format specification begins with the percent character (%).
The other fields are:
*
     an optional marker; if present, it suppresses interpretation and
     assignment of this input field.

WIDTH
     an optional maximum field width: a decimal integer, which controls
     the maximum number of characters that will be read before
     converting the current input field.  If the input field has fewer
     than WIDTH characters, scanf reads all the characters in the
     field, and then proceeds with the next field and its format
     specification.

     If a whitespace or a non-convertable character occurs before WIDTH
     character are read, the characters up to that character are read,
     converted, and stored.  Then scanf proceeds to the next format
     specification.

size
     h, l, and L are optional size characters which override the
     default way that scanf interprets the data type of the
     corresponding argument.

          Modifier   Type(s)
             hh      d, i, o, u, x, n  convert input to char,
                                       store in char object

             h       d, i, o, u, x, n  convert input to short,
                                       store in short object

             h       D, I, O, U, X     no effect
                     e, f, c, s, p

             l       d, i, o, u, x, n  convert input to long,
                                       store in long object

             l       e, f, g           convert input to double
                                       store in a double object

             l       D, I, O, U, X     no effect
                     c, s, p

             ll      d, i, o, u, x, n  convert to long long,
                                       store in long long

             L       d, i, o, u, x, n  convert to long long,
                                       store in long long

             L       e, f, g, E, G     convert to long double,
                                       store in long double

             L      all others         no effect

TYPE
     A character to specify what kind of conversion scanf performs.
     Here is a table of the conversion characters:

    %
          No conversion is done; the percent character (%) is stored.

    c
          Scans one character.  Corresponding ARG: (char *arg).

    s
          Reads a character string into the array supplied.
          Corresponding ARG: (char arg[]).

    [PATTERN]
          Reads a non-empty character string into memory starting at
          ARG.  This area must be large enough to accept the sequence
          and a terminating null character which will be added
          automatically.  (PATTERN is discussed in the paragraph
          following this table). Corresponding ARG: (char *arg).

    d
          Reads a decimal integer into the corresponding ARG: (int
          *arg).

    D
          Reads a decimal integer into the corresponding ARG: (long
          *arg).

    o
          Reads an octal integer into the corresponding ARG: (int
          *arg).

    O
          Reads an octal integer into the corresponding ARG: (long
          *arg).

    u
          Reads an unsigned decimal integer into the corresponding ARG:
          (unsigned int *arg).

    U
          Reads an unsigned decimal integer into the corresponding ARG:
          (unsigned long *arg).

    x,X
          Read a hexadecimal integer into the corresponding ARG: (int
          *arg).

    e, f, g
          Read a floating-point number into the corresponding ARG:
          (float *arg).

    E, F, G
          Read a floating-point number into the corresponding ARG:
          (double *arg).

    i
          Reads a decimal, octal or hexadecimal integer into the
          corresponding ARG: (int *arg).

    I
          Reads a decimal, octal or hexadecimal integer into the
          corresponding ARG: (long *arg).

    n
          Stores the number of characters read in the corresponding
          ARG: (int *arg).

    p
          Stores a scanned pointer.  ANSI C leaves the details to each
          implementation; this implementation treats %p exactly the
          same as %U.  Corresponding ARG: (void **arg).

     A PATTERN of characters surrounded by square brackets can be used
     instead of the s type character.  PATTERN is a set of characters
     which define a search set of possible characters making up the
     scanf input field.  If the first character in the brackets is a
     caret (^), the search set is inverted to include all ASCII
     characters except those between the brackets.  There is also a
     range facility which you can use as a shortcut. %[0-9]  matches
     all decimal digits.  The hyphen must not be the first or last
     character in the set.  The character prior to the hyphen must be
     lexically less than the character after it.

     Here are some PATTERN examples:
    %[abcd]
          matches strings containing only a, b, c, and d.

    %[^abcd]
          matches strings containing any characters except a, b,
          c, or d

    %[A-DW-Z]
          matches strings containing A, B, C, D, W, X, Y,
          Z

    %[z-a]
          matches the characters  z, -, and a

     Floating point numbers (for field types e, f, g, E, F,
     G) must correspond to the following general form:

          		[+/-] ddddd[.]ddd [E|e[+|-]ddd]

     where objects inclosed in square brackets are optional, and ddd
     represents decimal, octal, or hexadecimal digits.

Returns:
scanf returns the number of input fields successfully scanned,
converted and stored; the return value does not include scanned fields
which were not stored.

   If scanf attempts to read at end-of-file, the return value is
'EOF'.

   If no fields were stored, the return value is 0.

   scanf might stop scanning a particular field before reaching the
normal field end character, or may terminate entirely.

   scanf stops scanning and storing the current field and moves to
the next input field (if any) in any of the following situations:

   * The assignment suppressing character (*) appears after the %
     in the format specification; the current input field is scanned
     but not stored.

   * WIDTH characters have been read (WIDTH is a width specification, a
     positive decimal integer).

   * The next character read cannot be converted under the the current
     format (for example, if a Z is read when the format is decimal).

   * The next character in the input field does not appear in the
     search set (or does appear in the inverted search set).

   When scanf stops scanning the current input field for one of these
reasons, the next character is considered unread and used as the first
character of the following input field, or the first character in a
subsequent read operation on the input.

   scanf will terminate under the following circumstances:

   * The next character in the input field conflicts with a
     corresponding non-whitespace character in the format string.

   * The next character in the input field is EOF.

   * The format string has been exhausted.

   When the format string contains a character sequence that is not
part of a format specification, the same character sequence must appear
in the input; scanf will scan but not store the matched characters.
If a conflict occurs, the first conflicting character remains in the
input as if it had never been read.

Portability:
scanf is ANSI C.

   Supporting OS subroutines required: close, fstat, isatty,
lseek, read, sbrk, write.

 





Synopsys:
     #include <stdio.h>

     int iprintf(const char *FORMAT [, ARG, ...]);
     int fiprintf(FILE *FD, const char *FORMAT [, ARG, ...]);
     int siprintf(char *STR, const char *FORMAT [, ARG, ...]);
     int asiprintf(char **STRP, const char *FORMAT [, ARG, ...]);
     int sniprintf(char *STR, size_t SIZE, const char *FORMAT [, ARG, ...]);
   
Description:
'iprintf', 'fiprintf', 'siprintf', 'sniprintf', 'asiprintf', are the
same as printf, fprintf, sprintf, snprintf, and asprintf,
respectively, only that they restrict usage to non-floating-point format
specifiers.

Returns:
siprintf and asiprintf return the number of bytes in the output
string, save that the concluding NULL is not counted.  iprintf and
fiprintf return the number of characters transmitted.  If an error
occurs, iprintf and fiprintf return EOF and asiprintf returns
-1.  No error returns occur for siprintf.

Portability:
iprintf, fiprintf, siprintf, sniprintf, and asprintf are
newlib extensions.

   Supporting OS subroutines required: close, fstat, isatty,
lseek, read, sbrk, write.

 





Synopsys:
     #include <stdio.h>

     int iscanf(const char *FORMAT [, ARG, ...]);
     int fiscanf(FILE *FD, const char *FORMAT [, ARG, ...]);
     int siscanf(const char *STR, const char *FORMAT
         [, ARG, ...]);

     int _iscanf_r(struct _reent *PTR, const char *FORMAT [, ARG, ...]);
     int _fiscanf_r(struct _reent *PTR, FILE *FD, const char *FORMAT [, ARG, ...]);
     int _siscanf_r(struct _reent *PTR, const char *STR, const char *FORMAT
         [, ARG, ...]);
   
Description:
'iscanf', 'fiscanf', and 'siscanf' are the same as scanf, fscanf,
and sscanf respectively, only that they restrict the available
formats to non-floating-point format specifiers.

   The routines '_iscanf_r', '_fiscanf_r', and '_siscanf_r' are
reentrant versions of iscanf, fiscanf, and siscanf that take an
additional first argument pointing to a reentrancy structure.

Returns:
iscanf returns the number of input fields successfully scanned,
converted and stored; the return value does not include scanned fields
which were not stored.

   If iscanf attempts to read at end-of-file, the return value is
'EOF'.

   If no fields were stored, the return value is 0.

Portability:
iscanf, fiscanf, and siscanf are newlib extensions.

   Supporting OS subroutines required: close, fstat, isatty,
lseek, read, sbrk, write.

 





Synopsys:
     #include <stdio.h>
     FILE *tmpfile(void);

     FILE *_tmpfile_r(struct _reent *REENT);
   
Description:
'tmpfile' creates a temporary file (a file which will be deleted automatically),
using a name generated by tmpnam.  The temporary file is opened with
the mode "wb+", permitting you to read and write anywhere in it as a
binary file (without any data transformations the host system may
perform for text files).

   The alternate function '_tmpfile_r' is a reentrant version.  The
argument REENT is a pointer to a reentrancy structure.

Returns:
tmpfile normally returns a pointer to the temporary file.  If no
temporary file could be created, the result is NULL, and errno
records the reason for failure.

Portability:
Both ANSI C and the System V Interface Definition (Issue 2) require
tmpfile.

   Supporting OS subroutines required: close, fstat, getpid,
isatty, lseek, open, read, sbrk, write.

   tmpfile also requires the global pointer environ.

 





Synopsys:
     #include <stdio.h>
     char *tmpnam(char *S);
     char *tempnam(char *DIR, char *PFX);
     char *_tmpnam_r(struct _reent *REENT, char *S);
     char *_tempnam_r(struct _reent *REENT, char *DIR, char *PFX);
   
Description:
Use either of these functions to generate a name for a temporary file.
The generated name is guaranteed to avoid collision with other files
(for up to TMP_MAX calls of either function).

   'tmpnam' generates file names with the value of 'P_tmpdir' (defined
in stdio.h) as the leading directory component of the path.

   You can use the tmpnam argument S to specify a suitable area of
memory for the generated filename; otherwise, you can call
tmpnam(NULL) to use an internal static buffer.

   'tempnam' allows you more control over the generated filename: you
can use the argument DIR to specify the path to a directory for
temporary files, and you can use the argument PFX to specify a prefix
for the base filename.

   If DIR is NULL, tempnam will attempt to use the value of
environment variable 'TMPDIR' instead; if there is no such value,
tempnam uses the value of P_tmpdir (defined in stdio.h).

   If you dont need any particular prefix to the basename of temporary
files, you can pass NULL as the PFX argument to tempnam.

   '_tmpnam_r' and '_tempnam_r' are reentrant versions of tmpnam and
tempnam respectively.  The extra argument REENT is a pointer to a
reentrancy structure.

*Warnings*
The generated filenames are suitable for temporary files, but do not in
themselves make files temporary.  Files with these names must still be
explicitly removed when you no longer want them.

   If you supply your own data area S for tmpnam, you must ensure
that it has room for at least L_tmpnam elements of type char.

Returns:
Both tmpnam and tempnam return a pointer to the newly generated
filename.

Portability:
ANSI C requires tmpnam, but does not specify the use of P_tmpdir.
The System V Interface Definition (Issue 2) requires both tmpnam and
tempnam.

   Supporting OS subroutines required: close,  fstat, getpid,
isatty, lseek, open, read, sbrk, write.

   The global pointer environ is also required.

 





Synopsys:
     #include <stdio.h>
     #include <stdarg.h>
     int vprintf(const char *FMT, va_list LIST);
     int vfprintf(FILE *FP, const char *FMT, va_list LIST);
     int vsprintf(char *STR, const char *FMT, va_list LIST);
     int vasprintf(char **STRP, const char *FMT, va_list LIST);
     int vsnprintf(char *STR, size_t SIZE, const char *FMT, va_list LIST);

     int _vprintf_r(struct _reent *REENT, const char *FMT,
         va_list LIST);
     int _vfprintf_r(struct _reent *REENT, FILE *FP, const char *FMT,
         va_list LIST);
     int _vasprintf_r(struct _reent *REENT, char **STR, const char *FMT,
         va_list LIST);
     int _vsprintf_r(struct _reent *REENT, char *STR, const char *FMT,
         va_list LIST);
     int _vsnprintf_r(struct _reent *REENT, char *STR, size_t SIZE, const char *FMT,
         va_list LIST);
   
Description:
'vprintf', 'vfprintf', 'vasprintf', 'vsprintf' and 'vsnprintf'/
'_vprintf_r', '_vfprintf_r', '_vasprintf_r', '_vsprintf_r' and '_vsnprintf_r' are
(respectively) variants of printf, fprintf, asprintf, sprintf,
and snprintf.  They differ only in allowing their caller to pass the
variable argument list as a 'va_list' object (initialized by va_start)
rather than directly accepting a variable number of arguments.

Returns:
The return values are consistent with the corresponding functions:
vasprintf/vsprintf returns the number of bytes in the output string,
save that the concluding NULL is not counted.  vprintf and
vfprintf return the number of characters transmitted.  If an error
occurs, vprintf and vfprintf return EOF and vasprintf returns
-1.  No error returns occur for vsprintf.

Portability:
ANSI C requires all three functions.

   Supporting OS subroutines required: close, fstat, isatty,
lseek, read, sbrk, write.

 





Synopsys:
     #include <stdio.h>
     #include <stdarg.h>
     int vscanf(const char *FMT, va_list LIST);
     int vfscanf(FILE *FP, const char *FMT, va_list LIST);
     int vsscanf(const char *STR, const char *FMT, va_list LIST);

     int _vscanf_r(struct _reent *REENT, const char *FMT,
         va_list LIST);
     int _vfscanf_r(struct _reent *REENT, FILE *FP, const char *FMT,
         va_list LIST);
     int _vsscanf_r(struct _reent *REENT, const char *STR, const char *FMT,
         va_list LIST);
   
Description:
'vscanf', 'vfscanf', and 'vsscanf' /  '_vscanf_r', '_vfscanf_r', and '_vsscanf_r'
are (respectively) variants of scanf, fscanf, and sscanf.  They differ only
in allowing their caller to pass the variable argument list as a va_list object
(initialized by va_start) rather than directly accepting a variable
number of arguments.

Returns:
The return values are consistent with the corresponding functions:
vscanf returns the number of input fields successfully scanned,
converted, and stored; the return value does not include scanned fields
which were not stored.

   If vscanf attempts to read at end-of-file, the return value is
EOF.

   If no fields were stored, the return value is 0.

   The routines _vscanf_r, _vfscanf_f, and _vsscanf_r are
reentrant versions which take an additional first parameter which
points to the reentrancy structure.

Portability:
These are GNU extensions.

   Supporting OS subroutines required:

 





Synopsys:
     #include <stdio.h>
     #include <stdarg.h>
     int viprintf(const char *FMT, va_list LIST);
     int vfiprintf(FILE *FP, const char *FMT, va_list LIST);
     int vsiprintf(char *STR, const char *FMT, va_list LIST);
     int vasiprintf(char **STRP, const char *FMT, va_list LIST);
     int vsniprintf(char *STR, size_t SIZE, const char *FMT, va_list LIST);

     int _viprintf_r(struct _reent *REENT, const char *FMT,
         va_list LIST);
     int _vfiprintf_r(struct _reent *REENT, FILE *FP, const char *FMT,
         va_list LIST);
     int _vasiprintf_r(struct _reent *REENT, char **STR, const char *FMT,
         va_list LIST);
     int _vsiprintf_r(struct _reent *REENT, char *STR, const char *FMT,
         va_list LIST);
     int _vsniprintf_r(struct _reent *REENT, char *STR, size_t SIZE, const char *FMT,
         va_list LIST);
   
Description:
'viprintf', 'vfiprintf', 'vasiprintf', 'vsiprintf' and 'vsniprintf' /
'_viprintf_r', '_vfiprintf_r', '_vasiprintf_r', '_vsiprintf_r' and '_vsniprintf_r' are
(respectively) variants of iprintf, fiprintf, asiprintf,
siprintf, and sniprintf.  They differ only in restricting the
caller to use non-floating-point format specifiers.

Returns:
The return values are consistent with the corresponding functions:
vasiprintf/vsiprintf returns the number of bytes in the output
string, save that the concluding NULL is not counted.  viprintf and
vfiprintf return the number of characters transmitted.  If an error
occurs, viprintf and vfiprintf return EOF and vasiprintf
returns -1.  No error returns occur for vsiprintf.

Portability:
viprintf, vfiprintf, vasiprintf, vsiprintf and vsniprintf are
newlib extensions.

   Supporting OS subroutines required: close, fstat, isatty,
lseek, read, sbrk, write.

 





Synopsys:
     #include <stdio.h>
     #include <stdarg.h>
     int viscanf(const char *FMT, va_list LIST);
     int vfiscanf(FILE *FP, const char *FMT, va_list LIST);
     int vsiscanf(const char *STR, const char *FMT, va_list LIST);

     int _viscanf_r(struct _reent *REENT, const char *FMT,
         va_list LIST);
     int _vfiscanf_r(struct _reent *REENT, FILE *FP, const char *FMT,
         va_list LIST);
     int _vsiscanf_r(struct _reent *REENT, const char *STR, const char *FMT,
         va_list LIST);
   
Description:
'viscanf', 'vfiscanf', and 'vsiscanf' / '_viscanf_r', '_vfiscanf_r', and '_vsiscanf_r'
are (respectively) variants of iscanf, fiscanf, and siscanf.  They differ
only in allowing their caller to pass the variable argument list as a 'va_list' object
(initialized by va_start) rather than directly accepting a variable
number of arguments.

Returns:
The return values are consistent with the corresponding functions:
viscanf returns the number of input fields successfully scanned,
converted, and stored; the return value does not include scanned fields
which were not stored.

   If viscanf attempts to read at end-of-file, the return value is
EOF.

   If no fields were stored, the return value is 0.

   The routines _viscanf_r, _vfiscanf_f, and _vsiscanf_r are
reentrant versions which take an additional first parameter which
points to the reentrancy structure.

Portability:
These are newlib extensions.

   Supporting OS subroutines required:

