17.05.2015 Views

TMS34010 C Compiler - Al Kossow's Bitsavers

TMS34010 C Compiler - Al Kossow's Bitsavers

TMS34010 C Compiler - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Runtime-Support Functions - Summary<br />

6.2 Summary of Runtime-Support Functions and Macros<br />

Macro and Syntax<br />

void assert(e~pression)<br />

int express~on;<br />

Error Message Macro<br />

Header File: assert. h<br />

Description<br />

Inserts diagnostic messages into programs<br />

Character Typing and Conversion Functions<br />

Header File: ctype. h<br />

Function and Syntax<br />

Description<br />

int isalnum(c)<br />

char C;<br />

Tests c to see if it's an alphanumeric-ASCII character<br />

int isalpha(c)<br />

char c;<br />

Tests c to see if it's an alphabetic-ASCII character<br />

int isascii(c)<br />

char c;<br />

Tests c to see if it's an ASCII character<br />

int iscntrl(c)<br />

char c;<br />

Tests c to see if it's a control character<br />

int isdiqit(c)<br />

char Ci<br />

Tests c to see if it's a numeric character<br />

int isqraph(c)<br />

Tests c to see if it's any printing character except<br />

char c; a space<br />

int islower(c)<br />

Tests c to see if it's a lowercase alphabetic<br />

char c; ASCII character<br />

int isprint(c)<br />

Tests c to see if it's a printable ASCII character<br />

char c; (including spaces)<br />

int ispunct(c)<br />

char C;<br />

Tests c to see if it's an ASCII punctuation character<br />

int isspace(c)<br />

Tests c to see if it's an ASCII spacebar, tab (horizontal<br />

char C; or vertical), carriage return, formfeed, and newline characters<br />

int isupper(c)<br />

Tests c to see if it's an uppercase ASCII alphabetic<br />

char Ci character<br />

int isxdiqit(c)<br />

char Ci<br />

Tests c to see if it's a hexadecimal digit<br />

char toascii(c)<br />

char Ci<br />

Masks c into a legal ASCII value<br />

char tolower(c)<br />

char C;<br />

Converts c to lowercase if it's uppercase<br />

char toupper(c)<br />

char c;<br />

Converts c to uppercase if it's lowercase<br />

Floating-Point Math Functions<br />

Header File: math.h<br />

Function and Syntax<br />

Description<br />

double acos(x) Returns the arc cosine of a floating-point value x<br />

double Xi<br />

double asin(x) Returns the arc sine of a floating-point value x<br />

double x;<br />

double atan(x)<br />

double x;<br />

Returns the arc tangent of a floating-point value x<br />

double atan2(y,x)<br />

double y,x;<br />

Returns the inverse tangent of y Ix<br />

6-9

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

Saved successfully!

Ooh no, something went wrong!