Guardian C Library Calls Reference Manual
Reference to Library Calls
Guardian TNS C Library Calls Reference Manual—128833 3-61
fscanf
frexp
The frexp function splits a floating-point number into a normalized fraction and an 
integral power of 2. 
expr
is an expression of type double.
binary_power
points to the variable of type int where frexp stores the integral power of 2. If expr is 
zero, the power of 2 is also zero.
Return Value
is the normalized fraction, expressed as a double value. If expr is zero, frexp returns 
the value zero.
Example
This example prints “The mantissa is 0.615000. The exponent is 1.”:
#include <stdioh>
#include <mathh>
int main(void)
{
 double r, x;
 int i;
 x = 1.23;
 r = frexp(x, &i);
 printf("The mantissa is %f. ", r);
 printf("The exponent is %d.\n", i);
}
fscanf
The fscanf function reads and scans input from a file opened for ANSI I/O, comparing it 
to an expected format specified by a format string. If the input conforms to the given 
expectations, fscanf converts the input data to specified types of values and stores these 
values in variables that you supply. 
#include <mathh>
double frexp(double expr, int *binary_power);
#include <stdioh>
int fscanf(FILE *stream, const char *format, [*obj_ptr...]);










