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 FunctionsCTIMESynopsis#include char * ctime (time_t * t)DescriptionThe ctime() function converts the time in seconds pointed to by its argument to a string of the sameform as described for asctime(). Thus the example program prints the current time and date.Example#include #include voidmain (void){time_t clock;}time(&clock);printf("%s", ctime(&clock));See Alsogmtime(), localtime(), asctime(), time()Return ValueA pointer to the string.NoteThe example will require the user to provide the time() routine as one cannot be supplied with thecompiler. See time() for more detail.139

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

Saved successfully!

Ooh no, something went wrong!