Next: vfprintf
, Previous: va_start
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
vdprintf
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/vdprintf.html
Gnulib module: vdprintf or vdprintf-posix or vdprintf-gnu
Portability problems fixed by either Gnulib module vdprintf
or vdprintf-posix
or vdprintf-gnu
:
Portability problems fixed by either Gnulib module vdprintf-posix
or vdprintf-gnu
:
w8
,
w16
, w32
, w64
, wf8
, wf16
, wf32
,
wf64
) on some platforms:
glibc, musl libc, macOS 12.5, FreeBSD 13.1, NetBSD 9.0, OpenBSD 7.2,
AIX 7.2, Solaris 11.4, Cygwin 2.9.0.
"%f"
, "%e"
, "%g"
of Infinity and NaN yields an
incorrect result on some platforms:
Solaris 11.4.
_FORTIFY_SOURCE >= 2
(set by default on Ubuntu),
macOS 11.1.
"%010f"
of NaN and Infinity yields an incorrect result (padded
with zeroes, or wrong capitalization) on some platforms:
Solaris 11.4.
Portability problems fixed by Gnulib module vdprintf-gnu
:
Portability problems not fixed by Gnulib:
%m
directive is not portable, use %s
mapped to an
argument of strerror(errno)
(or a version of strerror_r
)
instead.
errno
or the
stream error indicator on attempts to write to a read-only stream:
Cygwin 1.7.9.
Next: vfprintf
, Previous: va_start
, Up: ISO C and POSIX Function Substitutes [Contents][Index]