Sets the binary floating-point representation of infinite value
and Not a Number for the
printf family of functions as
follows:
- When the value of _EDC_C99_NAN is set to YES,
then the printf family of functions use C99 compliant behavior.
C99 defines the representation of infinity and Not a Number as INF,
and NAN (for E, F, G, and A conversion
specifiers) or inf and nan (for e, f, g, and a conversion
specifiers). In C99 compliant behavior, the case of the string will
be the same as the case of the conversion specifier that was used.
- When the value of _EDC_C99_NAN is not set, or set to
a value other than YES, then the representation of infinity
and Not a Number is INF and NaN.
The
_EDC_C99_NAN environment variable can be set with
the function:
setenv("_EDC_C99_NAN","YES", 1);