C Reference function asin()

Usage of asin():

double asin(double x);

Parameters:

The value of x must be within the range of -1 to +1 (inclusive).

Return value:

The returned value is in the range of -p/2 to +p/2 (inclusive).

Source code example of asin():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function asin()


C Reference function acos()

Usage of acos():

double acos(double x);

Parameters:

The value x must be within the range of -1 to +1 (inclusive).

Return value:

The returned value is in the range of 0 to pi (inclusive).

Source code example of acos():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function acos()


C Reference macro NULL

The null pointer macro (NULL) is generally used to signify that a pointer does not point to a object.


Posted in C Reference time.h Functions | Comments Off on C Reference macro NULL


C Reference Macro CLOCKS_PER_SEC

The macro constant expression CLOCKS_PER_SEC specifies the relation between a clock tick and a second (clock ticks per second).

If you divide a count of clock ticks by this expression you get the number of seconds.

The CLK_TCK is an obsolete alias of this macro.

For a usage example take a look at the clock page.


Posted in C Reference time.h Functions | Comments Off on C Reference Macro CLOCKS_PER_SEC


C Reference Structure tm

The time structure tm contains a calendar date and time which are broken down into its components.
Structure containing a calendar date and time broken down into its components.

The structure contains nine members of type integer: More »


Posted in C Reference time.h Functions | Comments Off on C Reference Structure tm


C Reference Time type time_t

The time type (time_t) is capable of representing times and it also support arithmetical operations.

The time function will return this type. It is also used by some other functions of the time.h header file.

It represents the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC. Also called EPOCH time (Unix time stamp). It is widely implemented in the C libraries across ALL platforms.


Posted in C Reference time.h Functions | Comments Off on C Reference Time type time_t


C Reference Unsigned integral type size_t

The unsigned integral type (size_t) corresponds to the integral data type returned by the language operator sizeof. It is used in (among others) in the time.h header file as an unsigned integral type.

In the header file time.h it is used by the function strftime as the type of its parameter maxsize. It is also used as the return type of this function. It is used to express counts of characters.


Posted in C Reference time.h Functions | Comments Off on C Reference Unsigned integral type size_t


C Reference TYPE clock_t

The clock type represent clock ticks counts and can be used for arithmetical operations.

The clock type clock_t is returned by the clock function of time.h header file.
It represents the number of clock ticks since the program was started.


Posted in C Reference time.h Functions | Comments Off on C Reference TYPE clock_t


C Reference function strftime()

Usage of strftime():

size_t strftime ( char * ptr_dest, size_t maxsize, const char * format, const struct tm * ptr_time );

Parameters:

ptr_dest is a pointer to the destination array where the resulting C string is copied too.

The maxsize contains the maximum number of characters to be copied to ptr_dest. More »


Posted in C Reference time.h Functions | Comments Off on C Reference function strftime()


C Reference function localtime()

Usage of localtime():

struct tm * localtime ( const time_t * ptr_time );

Parameters:

The pointer ptr_time is a pointer to a time_t object that contains a calendar time.

Return Value:

The function localtime() returns a pointer to a tm structure. The tm structure contains the time information.

Explanation:

More »


Posted in C Reference time.h Functions | Comments Off on C Reference function localtime()