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

NAME

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

SYNOPSIS

9       int sprintf(char * buf, const char * fmt, ...);
10

ARGUMENTS

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

DESCRIPTION

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.         June 2019                        SPRINTF(9)
Impressum