.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SNPRINTF" "9" "09 October 2005" "" ""
.SH NAME
snprintf \- Format a string and place it in a buffer
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snprintf (char * \fIbuf\fB, size_t \fIsize\fB, const char * \fIfmt\fB, \fI\&...\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbuf\fB\fR
The buffer to place the result into
.TP
\fB\fIsize\fB\fR
The size of the buffer, including the trailing null space
.TP
\fB\fIfmt\fB\fR
The format string to use
@...: Arguments for the format string
.TP
\fB\fI\&...\fB\fR
variable arguments
.SH "DESCRIPTION"
.PP
The return value is the number of characters which would be
generated for the given input, excluding the trailing null,
as per ISO C99. If the return is greater than or equal to
\fIsize\fR, the resulting string is truncated.