diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-07-08 12:11:40 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-07-08 12:11:40 +0000 |
| commit | cc4615cc788aa749f34483abd33ba2b4a31d30f0 (patch) | |
| tree | 97070128f611af532551a19bb8062597b22cabd8 /man3/printf.3 | |
| parent | 86c256953d62ba083f7ef6adcc5b4063f0b51d2b (diff) | |
| download | man-pages-cc4615cc788aa749f34483abd33ba2b4a31d30f0.tar.gz | |
Added/updated glibc feature test macro requirements
Diffstat (limited to 'man3/printf.3')
| -rw-r--r-- | man3/printf.3 | 19 |
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 (), |
