Guardian C Library Calls Reference Manual
Reference to Library Calls
Guardian TNS C Library Calls Reference Manual—128833 3-25
div
difftime
The difftime function computes the difference between two calendar times:
time1 - time2.
time1
specifies a calendar time, and is of type type_t. Type type_t is defined in the header
timeh.
time2
specifies another calendar time, and is also of type type_t.
Return Value
is the difference time1 - time2. The difference is expressed in seconds as a floating-
point number of type double.
div
The div function computes the int quotient and int remainder that result from the integral
division of its two int arguments.
dividend
specifies the dividend, or numerator, of the integral division equation.
divisor
specifies the divisor, or denominator, of the integral division equation.
Return Value
is a structure of type div_t, which comprises two int members, quot and rem, that
respectively contain the quotient and remainder resulting from the integral division
of dividend by divisor.
#include <timeh>
double difftime(time_t time1, time_t time2);
#include <stdlibh>
div_t div(int dividend, int divisor);