Crossware

Table of Contents        Previous topic       Next topic       

C COMPILER LIBRARY FUNCTION REFERENCE->Detailed Descriptions->time()

Summary

#include <time.h>

time_t time(time_t *timeptr);


Parameter

timeptr    Pointer to time storage location


Description

This function returns the current calender time if this is available, otherwise it returns -1.  The routine provided assumes that calender time is not available and always returns -1.

If timeptr is not NULL, then -1 is also stored in the location given by this pointer.


Return

This function returns -1 to indicate that no time is available.