tmpfile: Add support for Android.
[gnulib.git] / doc / glibc-functions / vasprintf.texi
blobfbf6dc674e023d9caa40cae97fbfd8bcdd05a3db
1 @node vasprintf
2 @subsection @code{vasprintf}
3 @findex vasprintf
5 Gnulib module: vasprintf or vasprintf-posix
7 Portability problems fixed by either Gnulib module @code{vasprintf} or @code{vasprintf-posix}:
8 @itemize
9 @item
10 This function is missing on some platforms:
11 AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, mingw, MSVC 14, Interix 3.5.
12 @end itemize
14 Portability problems fixed by Gnulib module @code{vasprintf-posix}:
15 @itemize
16 @item
17 This function does not support size specifiers as in C99 (@code{hh}, @code{ll},
18 @code{j}, @code{t}, @code{z}) on some platforms:
19 Cygwin 1.5.24, BeOS.
20 @item
21 printf of @samp{long double} numbers is unsupported on some platforms:
22 BeOS.
23 @item
24 printf @code{"%f"}, @code{"%e"}, @code{"%g"} of Infinity and NaN yields an
25 incorrect result on some platforms:
26 Solaris 11.0.
27 @item
28 This function does not support the @samp{a} and @samp{A} directives on some
29 platforms:
30 glibc-2.3.6, Mac OS X 10.5, NetBSD 5.0, OpenBSD 4.0, Solaris 11.4, Cygwin 1.5.x, BeOS.
31 @item
32 This function does not support the @samp{F} directive on some platforms:
33 NetBSD 3.0, Cygwin 1.5.x, BeOS.
34 @item
35 This function does not support the @samp{ls} directive on some platforms:
36 OpenBSD 4.0, Cygwin 1.5.x, Haiku.
37 @item
38 This function does not support precisions in the @samp{ls} directive correctly
39 on some platforms:
40 Solaris 11.4.
41 @item
42 This function does not support format directives that access arguments in an
43 arbitrary order, such as @code{"%2$s"}, on some platforms:
44 NetBSD 3.0, BeOS.
45 @item
46 This function doesn't support the @code{'} flag on some platforms:
47 NetBSD 3.0, Cygwin 1.5.24.
48 @item
49 This function does not round the argument of the @samp{a} directive correctly
50 on some platforms:
51 Mac OS X 10.12, FreeBSD 6.1.
52 @item
53 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
54 with zeroes) on some platforms:
55 Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, Solaris 11.0, Cygwin 1.5.x.
56 @item
57 This function does not support precisions larger than 512 or 1024 in integer,
58 floating-point and pointer output on some platforms:
59 BeOS.
60 @item
61 This function can crash in out-of-memory conditions on some platforms:
62 Mac OS X 10.3, FreeBSD 6.0, NetBSD 5.0.
63 @end itemize
65 Portability problems not fixed by Gnulib:
66 @itemize
67 @item
68 The @code{%m} directive is not portable, use @code{%s} mapped to an
69 argument of @code{strerror(errno)} (or a version of @code{strerror_r})
70 instead.
71 @end itemize