
difftime
7-29
Run-Time-Support Functions
Hyperbolic Cosine
cosh
Syntax
#include <math.h>
double
cosh
(double x);
Defined in
cosh.c in rts.src
Description
The cosh function returns the hyperbolic cosine of a floating-point number x.
A range error occurs (errno is set to the value of EDOM) if the magnitude of
the argument is too large.
Example
double x, y;
x = 0.0;
y = cosh(x);
/* return value = 1.0 */
Calendar Time
ctime
Syntax
#include <time.h>
char *
ctime
(const time_t *timer);
Defined in
ctime.c in rts.src
Description
The ctime function converts the calendar time (pointed to by timer) to local time
in the form of a string. This is equivalent to:
asctime(localtime(timer))
The function returns the pointer returned by the asctime function.
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
Time Difference
difftime
Syntax
#include <time.h>
double
difftime
(time_t time1, time_t time0);
Defined in
difftime.c in rts.src
Description
The difftime function calculates the difference between two calendar times,
time1 minus time0. The return value is expressed in seconds.
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...