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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Library FunctionsATOLSynopsis#include long atol (const char * s)DescriptionThe atol() function scans the character string passed to it, skipping leading blanks. It then convertsan ASCII representation of a decimal number to a long integer.Example#include #include voidmain (void){char buf[80];long i;}gets(buf);i = atol(buf);printf("Read %s: converted to %ld\n", buf, i);See Alsoatoi(), atof()Return ValueA long integer. If no number is found in the string, 0 will be returned.127

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

Saved successfully!

Ooh no, something went wrong!