11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

- Character handlingThe header declares several functions useful <strong>for</strong> classifying and mappingcharacters.The character argument to all functions is an int, the value of which is representable asan unsigned char or is the value of the macro EOF. If the argument has any other value,the behavior is undefined.Only the "C" locale is supported by <strong>CrossWorks</strong> C, and thus the functions in this headerare not affected by locales.The term printing character refers to a member of a set of characters, each of whichoccupies one printing position on a display device; the term control character refers toa member of a set of characters that are not printing characters. All letters and digitsare printing characters.Classification functionsisalnumisalphaisblankiscntrlisdigitisgraphisupperisprintispunctisspaceisupperisxdigitIs character alphanumeric?Is character alphabetic?Is character a space or horizontal tab?Is character a control character?Is character a decimal digit?Is character any printing character except space?Is character a lowercase letter?Is character printable?Is character a punctuation mark?Is character a whitespace character?Is character an uppercase letter?Is character a hexadecimal letter?Conversion functionstolowertoupperConvert uppercase character to lowercaseConvert lowercase character to uppercaseChapter 28 - Character handling243

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

Saved successfully!

Ooh no, something went wrong!