a28a13bcd9767cfc52f1efd15727d07eb1e8ba2c
[gnulib.git] / doc / posix-functions / vsprintf.texi
1 @node vsprintf
2 @section @code{vsprintf}
3 @findex vsprintf
4
5 POSIX specification: @url{http://www.opengroup.org/susv3xsh/vsprintf.html}
6
7 Gnulib module: vsprintf-posix
8
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
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 2006, mingw, BeOS.
15 @item
16 printf of @samp{long double} numbers is unsupported on some platforms:
17 mingw, BeOS.
18 @item
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.
22 @item
23 This function does not support the @samp{a} and @samp{A} directives on some
24 platforms:
25 glibc-2.3.6, MacOS X 10.3, NetBSD 3.0, OpenBSD 4.0, AIX 5.2, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin, mingw, BeOS.
26 @item
27 This function does not support the @samp{F} directive on some platforms:
28 NetBSD 3.0, AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9, Cygwin, mingw, BeOS.
29 @item
30 This function does not support format directives that access arguments in an
31 arbitrary order, such as @code{"%2$s"}, on some platforms:
32 NetBSD 3.0, mingw, BeOS.
33 @item
34 This function doesn't support the @code{'} flag on some platforms:
35 NetBSD 3.0, Cygwin 2006, mingw.
36 @item
37 This function behaves incorrectly when a @samp{-} flag and a negative width
38 are specified together, on some platforms:
39 HP-UX 10.20.
40 @item
41 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
42 with zeroes) on some platforms:
43 MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, AIX 5.2, IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 2007, mingw.
44 @item
45 This function does not support precisions larger than 512 or 1024 in integer,
46 floating-point and pointer output on some platforms:
47 mingw, BeOS.
48 @item
49 This function can crash in out-of-memory conditions on some platforms:
50 MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0.
51 @end itemize
52
53 Portability problems not fixed by Gnulib:
54 @itemize
55 @end itemize