FPRINTF(3P) POSIX Programmer's Manual FPRINTF(3P)
PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond-
ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
NAME
dprintf, fprintf, printf, snprintf, sprintf -- print formatted output
SYNOPSIS
#include <stdio.h>
int dprintf(int fildes, const char *restrict format, ...);
int fprintf(FILE *restrict stream, const char *restrict format, ...);
int printf(const char *restrict format, ...);
int snprintf(char *restrict s, size_t n,
const char *restrict format, ...);
int sprintf(char *restrict s, const char *restrict format, ...);
DESCRIPTION
Excluding dprintf(): The functionality described on this reference page is aligned with the ISO C standard. Any conflict between the
requirements described here and the ISO C standard is unintentional. This volume of POSIX.1-2008 defers to the ISO C standard.
The fprintf() function shall place output on the named output stream. The printf() function shall place output on the standard output
stream stdout. The sprintf() function shall place output followed by the null byte, '