2 @section @code{vdprintf}
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/vdprintf.html}
7 Gnulib module: vdprintf or vdprintf-posix
9 Portability problems fixed by either Gnulib module @code{vdprintf} or @code{vdprintf-posix}:
12 This function is missing on some platforms:
13 Mac OS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 11.3, Cygwin 1.5.x, mingw, MSVC 14.
16 Portability problems fixed by Gnulib module @code{vdprintf-posix}:
19 printf @code{"%f"}, @code{"%e"}, @code{"%g"} of Infinity and NaN yields an
20 incorrect result on some platforms:
23 This function does not support the @samp{a} and @samp{A} directives on some
25 glibc-2.3.6, Solaris 11.4.
27 This function does not support the @samp{n} directive on some platforms:
28 glibc when used with @code{_FORTIFY_SOURCE >= 2} (set by default on Ubuntu),
31 This function does not support precisions in the @samp{ls} directive correctly
35 printf @code{"%010f"} of NaN and Infinity yields an incorrect result (padded
36 with zeroes, or wrong capitalization) on some platforms:
39 This function does not support precisions larger than 512 or 1024 in integer,
40 floating-point and pointer output on some platforms:
44 Portability problems not fixed by Gnulib:
47 The @code{%m} directive is not portable, use @code{%s} mapped to an
48 argument of @code{strerror(errno)} (or a version of @code{strerror_r})
51 Formatting noncanonical @samp{long double} numbers produces
52 nonmeaningful results on some platforms:
53 glibc and others, on x86, x86_64, IA-64 CPUs.
55 When formatting an integer with grouping flag, this function inserts thousands
56 separators even in the "C" locale on some platforms:
59 On some platforms, this function does not set @code{errno} or the
60 stream error indicator on attempts to write to a read-only stream: