11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Library FunctionsTIMESynopsis#include time_t time (time_t * t)DescriptionThis function is not provided as it is dependant on the target system supplying the current time. Thisfunction will be user implemented. When implemented, this function should return the current timein seconds since 00:00:00 on Jan 1, 1970. If the argument t is not equal to NULL, the same value isstored into the object pointed to by t.Example#include #include voidmain (void){time_t clock;}time(&clock);printf("%s", ctime(&clock));See Alsoctime(), gmtime(), localtime(), asctime()Return ValueThis routine when implemented will return the current time in seconds since 00:00:00 on Jan 1,1970.220

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!