sprintf3
String print formatted
Usage
#include <stdio.h>
int sprintf(char *restrict str, const char *restrict format, ...); int vsprintf(char *restrict str, const char *restrict format, va_list ap);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
snprintf(), vsnprintf():
_XOPEN_SOURCE >= 500 || _ISOC99_SOURCE
|| /* glibc <= 2.19: */ _BSD_SOURCE
Library
Standard C library (libc, -lc)
Overview
These functions are equivalent to snprintf(3) and vsnprintf(3), except that no check for buffer overrun is performed (see BUGS below).
Attributes
For an explanation of the terms used in this section, see attributes(7).
| Interface | Attribute | Value |
| sprintf(), vsprintf() | Thread safety | MT-Safe locale |
Releases
19 releases since Debian 1.1 (Buzz); the text changed 18 times.