Guardian Native C Library Calls Reference Manual (G06.27+)
vsnprintf(3) Guardian Native C Library Calls Reference Manual
RETURN VALUES
Upon successful completion, this function returns the number of bytes that would have been
stored had n been sufficiently 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 final ’\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 specification.
7−56 Hewlett-Packard Company 527192-004