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 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!