
gmtime
7-33
Run-Time-Support Functions
Fraction and Exponent
frexp
Syntax
#include <math.h>
double
frexp
(double value, int *exp);
Defined in
frexp30.asm in rts.src
Description
The frexp function breaks a floating-point number into a normalized fraction
(f) and the integer power of 2. The function returns f and exp such that
0.5
−
|f|<1.0 and value ==f x 2
exp
. The frexp function stores the power is stored
in the int pointed to by exp. If value is 0, both parts of the result are 0.
Example
double fraction;
int exp;
fraction = frexp(3.0, &exp);
/* after execution, fraction is .75 and exp is 2 */
Greenwich Mean Time
gmtime
Syntax
#include <time.h>
struct tm *
gmtime
(const time_t *timer);
Defined in
gmtime.c in rts.src
Description
The gmtime function converts a calendar time (pointed to by timer) into Coordi-
nated Universal Time (represented as a broken-down time). The name gmtime
has historical significance as Greenwich Mean Time.
For more information about the functions and types that the time.h header
declares and defines, see section 7.2.12,
Time Functions
(time.h), on page
Содержание TMS320C2x
Страница 8: ...viii...
Страница 69: ...2 47 C Compiler Description...
Страница 159: ...6 36...
Страница 226: ...8 6...
Страница 250: ...Index Index 14 Z z shell option 2 2 2 4 2 14 overriding with c option 4 5 overriding with n option 2 13...