C Functions

_CP_time

.md

The _CP_time function is equivalent to the result = time() BASIC statement.

Syntax

 int _CP_time(int* result)

Description

This function returns -1 if an error occurs. The error code is contained in _CP_errno.

Example(s)

 /* Prints the numeric time. */
 
 int i;
 
 _CP_time(&i);
 _CP_unix_env();
 printf("%d\n",i);

See also