Open System Services Library Calls Reference Manual (G06.28+, H06.05+)

vsnprintf(3) OSS Library Calls Reference Manual
RETURN VALUES
Upon successful completion, this function returns the number of bytes that would have been
stored had n been sufciently large (not counting the terminating null character). Otherwise, a
negative value is returned. Thus, the null-terminated output has been completely stored if and
only if the returned value is nonnegative and less than n.
The value returned by the vsnprintf() function does not include the nal \0(null) character.
RETURN VALUES
Upon successful completion, this function returns the number of bytes in the output string. Oth-
erwise, a negative value is returned.
ERRORS
None. The vsnprintf() function does not set errno.
RELATED INFORMATION
Functions: fprintf(3), printf(3), snprintf(3), sprintf(3), vfprintf(3), vprintf(3), vsprintf(3).
STANDARDS CONFORMANCE
This function conforms to the UNIX98 specication.
784 Hewlett-Packard Company 527187-007