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 FunctionsATOISynopsis#include int atoi (const char * s)DescriptionThe atoi() function scans the character string passed to it, skipping leading blanks and reading anoptional sign. It then converts an ASCII representation of a decimal number to an integer.Example#include #include voidmain (void){char buf[80];int i;}gets(buf);i = atoi(buf);printf("Read %s: converted to %d\n", buf, i);See Alsoxtoi(), atof(), atol()Return ValueA signed integer. If no number is found in the string, 0 will be returned.126

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

Saved successfully!

Ooh no, something went wrong!