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