17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

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

Built-in Functions<br />

clear_interrupt, enable_interrupts()<br />

isalnum(char) isalpha(char)<br />

iscntrl(x) isdigit(char)<br />

isgraph(x) islower(char) isspace(char) isupper(char)<br />

isxdigit(char) isprint(x) ispunct(x)<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

value = isalnum(datac)<br />

value = isalpha(datac)<br />

value = isdigit(datac)<br />

value = islower(datac)<br />

value = isspace(datac)<br />

value = isupper(datac)<br />

value = isxdigit(datac)<br />

value = iscntrl(datac)<br />

value = isgraph(datac)<br />

value = isprint(datac)<br />

value = punct(datac)<br />

datac is a 8 bit character<br />

0 (or FALSE) if datac dose not match the criteria, 1 (or TRUE) if datac does<br />

match the criteria.<br />

Tests a character to see if it meets specific criteria as follows:<br />

isalnum(x) X is 0..9, 'A'..'Z', or 'a'..'z'<br />

isalpha(x) X is 'A'..'Z' or 'a'..'z<br />

isdigit(x) X is '0'..'9'<br />

islower(x) X is 'a'..'z'<br />

isupper(x) X is 'A'..'Z<br />

isspace(x) X is a space<br />

isxdigit(x) X is '0'..'9', 'A'..'F', or 'a'..'f<br />

iscntrl(x) X is less than a space<br />

isgraph(x) X is greater than a space<br />

isprint(x) X is greater than or equal to a space<br />

ispunct(x) X is greater than a space and not a letter or<br />

number<br />

All devices.<br />

#INCLUDE <br />

char id[20];<br />

...<br />

209

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

Saved successfully!

Ooh no, something went wrong!