Contents|Index|Previous|Next

siprintf
[write formatted output (integer only)]

    SYNOPSIS
    #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 type specifiers, f, g, G, e, and F, 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.

COMPLIANCE
siprintf is not required by ANSI C.

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