aboutsummaryrefslogtreecommitdiffstats
path: root/man3/printf.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/printf.3')
-rw-r--r--man3/printf.319
1 files changed, 16 insertions, 3 deletions
diff --git a/man3/printf.3 b/man3/printf.3
index 18e4b74a83..de581f954d 100644
--- a/man3/printf.3
+++ b/man3/printf.3
@@ -31,7 +31,7 @@
.\" 2000-07-26 jsm28@hermes.cam.ac.uk - three small fixes
.\" 2000-10-16 jsm28@hermes.cam.ac.uk - more fixes
.\"
-.TH PRINTF 3 2000-10-16 "GNU" "Linux Programmer's Manual"
+.TH PRINTF 3 2007-07-26 "GNU" "Linux Programmer's Manual"
.SH NAME
printf, fprintf, sprintf, snprintf, vprintf, vfprintf, vsprintf, vsnprintf \- formatted output conversion
.SH SYNOPSIS
@@ -54,6 +54,19 @@ printf, fprintf, sprintf, snprintf, vprintf, vfprintf, vsprintf, vsnprintf \- fo
.BI "int vsprintf(char *" str ", const char *" format ", va_list " ap );
.br
.BI "int vsnprintf(char *" str ", size_t " size ", const char *" format ", va_list " ap );
+.ad
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.ad l
+.BR snprintf (),
+.BR vsnprintf ():
+_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _ISOC99_SOURCE; or
+.I "cc -std=c99"
+.ad b
.SH DESCRIPTION
The functions in the
.BR printf ()
@@ -878,9 +891,9 @@ Use
and
.BR vsnprintf ()
instead (or
-.BR asprintf ()
+.BR asprintf (3)
and
-.BR vasprintf ().
+.BR vasprintf (3).
.PP
Linux libc4.[45] does not have a
.BR snprintf (),