2 @section @code{sprintf}
5 POSIX specification: @url{http://www.opengroup.org/onlinepubs/9699919799/functions/sprintf.html}
7 Gnulib module: sprintf-posix
9 Portability problems fixed by Gnulib:
12 This function does not support size specifiers as in C99 (@code{hh}, @code{ll},
13 @code{j}, @code{t}, @code{z}) on some platforms:
14 AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9, Cygwin 1.5.24, mingw, BeOS.
16 printf of @samp{long double} numbers is unsupported on some platforms:
19 printf @code{"%f"}, @code{"%e"}, @code{"%g"} of Infinity and NaN yields an
20 incorrect result on some platforms:
21 AIX 5.2, OSF/1 5.1, Solaris 10, mingw.
23 This function does not support the @samp{a} and @samp{A} directives on some
25 glibc-2.3.6, MacOS X 10.3, NetBSD 3.0, OpenBSD 4.0, AIX 5.2, HP-UX 11,
26 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x, mingw, BeOS.
28 This function does not support the @samp{F} directive on some platforms:
29 NetBSD 3.0, AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9,
30 Cygwin 1.5.x, mingw, BeOS.
32 This function does not support format directives that access arguments in an
33 arbitrary order, such as @code{"%2$s"}, on some platforms:
34 NetBSD 3.0, mingw, BeOS.
36 This function doesn't support the @code{'} flag on some platforms:
37 NetBSD 3.0, Cygwin 1.5.24, mingw.
39 This function behaves incorrectly when a @samp{-} flag and a negative width
40 are specified together, on some platforms:
43 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
44 with zeroes) on some platforms:
45 MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, AIX 5.2, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x, mingw.
47 This function does not support precisions larger than 512 or 1024 in integer,
48 floating-point and pointer output on some platforms:
51 This function can crash in out-of-memory conditions on some platforms:
52 MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0.
55 Portability problems not fixed by Gnulib: