Runtime-Support
Functions
-
Summary
6.2
Summary
of
Runtime-Support
Functions
and
Macros
Error
Message
Macro
Header
File:
assert.
h
Macro
and
Syntax
Description
void
assert(e~pression)
Inserts diagnostic
messages
into programs
int
express~on;
Character
Typing
and
Conversion
Functions
Header
File:
ctype.
h
Function
and
Syntax
Description
int
isalnum(c)
Tests c
to
see
if
it's
an
alphanumeric-ASCII character
char
C;
int
isalpha(c)
char
c;
Tests c
to
see
if
it's
an
alphabetic-ASCII character
int
isascii(c)
Tests
c
to
see
if
it's
an
ASCII character
char
c;
int
iscntrl(c)
Tests
c
to
see
if
it's a control character
char
c;
int
isdiqit(c)
Tests
c
to
see
if
it's a numeric character
char
Ci
int
isqraph(c)
Tests
c
to
see
if
it's any printing character except
char
c;
a space
int
islower(c)
Tests c to
see
if
it's a lowercase alphabetic
char
c;
ASCII character
int
isprint(c)
Tests c to
see
if
it's a printable ASCII character
char
c;
(including spaces)
int
ispunct(c)
Tests
c to
see
if
it's
an
ASCII punctuation character
char
C;
int
isspace(c)
Tests c
to
see
if
it's
an
ASCII spacebar, tab (horizontal
char
C;
or vertical), carriage return, formfeed, and newline characters
int
isupper(c)
Tests c to
see
if
it's
an
uppercase ASCII alphabetic
char
Ci
character
int
isxdiqit(c)
char
Ci
Tests c to
see
if
it's a hexadecimal
digit
char
toascii(c)
Masks c into a legal ASCII value
char
Ci
char
tolower(c)
Converts c to lowercase
if
it's uppercase
char
C;
char
toupper(c)
Converts c to uppercase
if
it's lowercase
char
c;
Floating-Point
Math
Functions
Header
File:
math.h
Function
and
Syntax
Description
double
acos(x)
Returns the arc cosine
of
a floating-point value x
double
Xi
double
asin(x)
Returns the arc sine
of
a floating-point value x
double
x;
double
atan(x)
Returns the
arc
tangent
of
a floating-point value x
double
x;
double
atan2(y,x)
double
y,x;
Returns the inverse tangent
of
y
Ix
6-9