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 FunctionsTOLOWER, TOUPPER, TOASCIISynopsis#include char toupper (int c)char tolower (int c)char toascii (int c)DescriptionThe toupper() function converts its lower case alphabetic argument to upper case, the tolower()routine performs the reverse conversion and the toascii() macro returns a result that is guaranteedin the range 0-0177. The functions toupper() and tolower() return their arguments if it is not analphabetic character.Example#include #include #include voidmain (void){char * array1 = "aBcDE";int i;}for(i=0;i < strlen(array1); ++i) {printf("%c", tolower(array1[i]));}printf("\n");See Alsoislower(), isupper(), isascii(), et. al.222

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

Saved successfully!

Ooh no, something went wrong!