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 FunctionsXTOISynopsis#include unsigned xtoi (const char * s)DescriptionThe xtoi() function scans the character string passed to it, skipping leading blanks reading an optionalsign, and converts an ASCII representation of a hexadecimal number to an integer.Example#include #include voidmain (void){char buf[80];int i;}gets(buf);i = xtoi(buf);printf("Read %s: converted to %x\n", buf, i);See Alsoatoi()Return ValueA signed integer. If no number is found in the string, zero will be returned.226

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

Saved successfully!

Ooh no, something went wrong!