VxWorks Reference Manual : Libraries

floatLib

NAME

floatLib - floating-point formatting and scanning library

ROUTINES

floatInit( ) - initialize floating-point I/O support

DESCRIPTION

This library provides the floating-point I/O formatting and scanning support routines.

The floating-point formatting and scanning support routines are not directly callable; they are connected to call-outs in the printf( )/scanf( ) family of functions in fioLib. This is done dynamically by the routine floatInit( ), which is called by the root task, usrRoot( ), in usrConfig.c when the configuration macro INCLUDE_FLOATING_POINT is defined. If this option is omitted (i.e., floatInit( ) is not called), floating-point format specifications in printf( ) and sscanf( ) are not supported.

INCLUDE FILES

math.h

SEE ALSO

floatLib, fioLib


Libraries : Routines

floatInit( )

NAME

floatInit( ) - initialize floating-point I/O support

SYNOPSIS


void floatInit (void)

DESCRIPTION

This routine must be called if floating-point format specifications are to be supported by the printf( )/scanf( ) family of routines. If the configuration macro INCLUDE_FLOATING_POINT is defined, it is called by the root task, usrRoot( ), in usrConfig.c.

RETURNS

N/A

SEE ALSO

floatLib