siprintf
---write formatted output (integer only)#include <stdio.h> int siprintf(char *str, const char *format [, arg, ...]);Description
siprintf
is a restricted version of sprintf
: it has the same
arguments and behavior, save that it cannot perform any floating-point
formatting: the f
, g
, G
, e
, and F
type specifiers
are not recognized.
Returns
siprintf
returns the number of bytes in the output string,
save that the concluding NULL
is not counted.
siprintf
returns when the end of the format string is
encountered.
Portability
siprintf
is not required by ANSI C.
Supporting OS subroutines required: close
, fstat
, isatty
,
lseek
, read
, sbrk
, write
.