Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Functions that support IEEE and ASCII encoding

&pagelevel(4)&pagelevel

The include files <stdio.h> and <stdlib.h> of the C runtime system contain some functions that support both IEEE floating-point arithmetic and ASCII encoding.

The original functions (/390, EBCDIC) are mapped to the corresponding ASCII/IEEE functions when the preprocessor defines _IEEE_SOURCE (see "Controlling the mapping of original functions to the associated IEEE variants") and _ASCII_SOURCE (see "Controlling the mapping of original functions to the associated ASCII variants") are both set to 1.

Names of the ASCII/IEEE functions

The syntax of the names of these ASCII/IEEE functions is as follows:

__ originalfunction_ ascii_ieee()

The name of the original function should be used for originalfunction.

The ASCII/IEEE variant of printf(), for example, is __printf_ascii_ieee().

C library functions for which there is an ASCII/IEEE function

atof()

ecvt()

ecvt_r()

fcvt()

fcvt_r()

fprintf()

fscanf()

gcvt()

printf()

scanf()

snprintf()

sprintf()

sscanf()

strfmon()

srtod()

srtof()

srtold()

syslog()

vfprintf()

vfscanf()

vprintf()

vscanf()

vsnprintf

vsprintf()

vsscanf()