Summary of Run-Time-Support Functions and Macros
7-14
Table 7
−
3. Summary of Run-Time-Support Functions and Macros
(a) Error message macro (assert.h)
Macro
Description
Page
void
assert
(int expr);
‡
Inserts diagnostic messages into programs
(b) Character typing and conversion functions (ctype.h)
Function
Description
Page
int
isalnum
(int c);
Tests c to see if it is an alphanumeric-ASCII
character
int
isalpha
(int c);
Tests c to see if it is an alphabetic-ASCII character 7-35
int
isascii
(int c);
Tests c to see if it is an ASCII character
int
iscntrl
(int c);
Tests c to see if it is a control character
int
isdigit
(int c);
Tests c to see if it is a numeric character
int
isgraph
(int c);
Tests c to see if it is any printing character except a
space
int
islower
(int c);
Tests c to see if it is a lowercase alphabetic ASCII
charcter
int
isprint
(int c);
Tests c to see if it is a printable ASCII character
(including a space)
int
ispunct
(int c);
Tests c to see if it is an ASCII punctuation character 7-35
int
isspace
(int c);
Tests c to see if it is an ASCII space bar, tab
(horizontal or vertical), carriage return, form feed, or
new line character
int
isupper
(int c);
Tests c to see if it is an uppercase ASCII alphabetic
character
int
isxdigit
(int c);
Tests c to see if it is a hexadecimal digit
char
toascii
(int c);
Masks c into a legal ASCII value
char
tolower
(int char c);
Converts c to lowercase if it is uppercase
char
toupper
(int char c);
Converts c to uppercase if it is lowercase
Note:
Functions in ctype.h are expanded inline if the
−
x option is used.
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...