2 @subsection @code{vasprintf}
5 LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-vasprintf.html}
11 @ref{Variable Arguments Output,,Variable Arguments Output Functions,libc},
14 @url{https://www.gnu.org/software/libc/manual/html_node/Variable-Arguments-Output.html},
17 @uref{https://www.kernel.org/doc/man-pages/online/pages/man3/vasprintf.3.html,,man vasprintf}.
20 Gnulib module: vasprintf or vasprintf-posix
22 Portability problems fixed by either Gnulib module @code{vasprintf} or @code{vasprintf-posix}:
25 This function is missing on some platforms:
26 AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 10, mingw, MSVC 14.
29 Portability problems fixed by Gnulib module @code{vasprintf-posix}:
32 This function does not support size specifiers as in C99 (@code{hh}, @code{ll},
33 @code{j}, @code{t}, @code{z}) on some platforms:
36 printf @code{"%f"}, @code{"%e"}, @code{"%g"} of Infinity and NaN yields an
37 incorrect result on some platforms:
40 This function does not support the @samp{a} and @samp{A} directives on some
42 glibc-2.3.6, Mac OS X 10.5, NetBSD 9.0, OpenBSD 4.0, Solaris 11.4, Cygwin 1.5.x.
44 This function does not support the @samp{F} directive on some platforms:
45 NetBSD 3.0, Cygwin 1.5.x.
47 This function does not support the @samp{ls} directive on some platforms:
48 OpenBSD 4.0, Cygwin 1.5.x, Haiku.
50 This function does not support precisions in the @samp{ls} directive correctly
54 This function does not support format directives that access arguments in an
55 arbitrary order, such as @code{"%2$s"}, on some platforms:
58 This function doesn't support the @code{'} flag on some platforms:
59 NetBSD 3.0, Cygwin 1.5.24.
61 This function does not round the argument of the @samp{a} directive correctly
63 Mac OS X 10.12, FreeBSD 6.1.
65 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
66 with zeroes) on some platforms:
67 Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, Solaris 11.0, Cygwin 1.5.x.
69 This function can crash in out-of-memory conditions on some platforms:
70 FreeBSD 6.0, NetBSD 5.0.
73 Portability problems not fixed by Gnulib:
76 The @code{%m} directive is not portable, use @code{%s} mapped to an
77 argument of @code{strerror(errno)} (or a version of @code{strerror_r})