1VSPRINTF(9)                Basic C Library Functions               VSPRINTF(9)
2
3
4

NAME

6       vsprintf - Format a string and place it in a buffer
7

SYNOPSIS

9       int vsprintf(char * buf, const char * fmt, va_list args);
10

ARGUMENTS

12       buf
13           The buffer to place the result into
14
15       fmt
16           The format string to use
17
18       args
19           Arguments for the format string
20

DESCRIPTION

22       The function returns the number of characters written into buf. Use
23       vsnprintf or vscnprintf in order to avoid buffer overflows.
24
25       Call this function if you are already dealing with a va_list. You
26       probably want sprintf instead.
27
28       See the vsnprintf documentation for format string extensions over C99.
29
31Kernel Hackers Manual 2.6.       November 2011                     VSPRINTF(9)
Impressum