1VSPRINTF(9) Basic C Library Functions VSPRINTF(9)
2
3
4
6 vsprintf - Format a string and place it in a buffer
7
9 int vsprintf(char * buf, const char * fmt, va_list args);
10
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
22 The function returns the number of characters written into buf. Use
23 vsnprintf or vscnprintf in order to avoid buffer overflows.
24
25 If you're not already dealing with a va_list consider using sprintf.
26
27 See the vsnprintf documentation for format string extensions over C99.
28
30Kernel Hackers Manual 3.10 June 2019 VSPRINTF(9)