1SPRINTF(9) Basic C Library Functions SPRINTF(9)
2
3
4
6 sprintf - Format a string and place it in a buffer
7
9 int sprintf(char * buf, const char * fmt, ...);
10
12 buf
13 The buffer to place the result into
14
15 fmt
16 The format string to use @...: Arguments for the format string
17
18 ...
19 variable arguments
20
22 The function returns the number of characters written into buf. Use
23 snprintf or scnprintf in order to avoid buffer overflows.
24
25 See the vsnprintf documentation for format string extensions over C99.
26
28Kernel Hackers Manual 2.6. November 2011 SPRINTF(9)