
viii
Motorola DSP56000 Family Optimizing C Compiler User’s Manual
For More Information On This Product,
Go to: www.freescale.com
Motorola
Appendix A
Programming Support
A.1
A.2
A.2.1
A.3
A.4
A.4.1
A.4.2
A.4.3
A.4.4
A.4.5
A.4.6
A.4.7
A.4.8
A.4.9
A.4.10
A.4.11
A.4.12
A.4.13
A.4.14
A.4.15
A.4.16
A.4.17
A.4.18
A.4.19
A.4.20
A.4.21
A.4.22
A.4.23
A.4.24
A.4.25
A.4.26
A.4.27
A.4.28
A.4.29
A.4.30
A.4.31
A.4.32
A.4.33
Standard ANSI Header Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
ANSI C Library Sub-routines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
Hosted vs. Non-Hosted Library Routines . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
Forcing Library Routines Out-of-line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
Function Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4
abort—Force abnormal program termination . . . . . . . . . . . . . . . . . . . . . . . . A-9
abs—Absolute value of integer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-10
acos—Arc cosine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-11
asin—Arc sine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-12
atan—Arc tangent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-13
atan2—Arc tangent of angle defined by point y/x. . . . . . . . . . . . . . . . . . . . A-14
atexit—Register a function for execution at normal program termination . A-15
atof—String to floating point. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-16
atoi—String to integer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-17
atol—String to long integer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-18
bsearch—Perform binary search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-19
calloc—Dynamically allocate zero-initialized storage for objects . . . . . . . A-20
ceil—Ceiling function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-22
clearerr—Clear any error indicators associated with a specified stream. . . A-22
cos—Cosine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-23
cosh—Hyperbolic cosine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-23
div—integer division with remainder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-24
exit—Terminate program normally . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-25
exp—Exponential, ex. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-26
fabs—Absolute value of a double . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-26
fclose—Close a stream. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-27
feof—Test the end-of-file indicator of a specified stream. . . . . . . . . . . . . . A-28
ferror—Test the error indicator of a stream. . . . . . . . . . . . . . . . . . . . . . . . . A-29
fflush—Flush all pending output associated with a stream . . . . . . . . . . . . . A-29
fgetc—Read a character from the specified stream . . . . . . . . . . . . . . . . . . . A-30
fgetpos—Get value of file position indicator associated with a stream. . . . A-31
fgets—Read a string from the specified stream. . . . . . . . . . . . . . . . . . . . . . A-32
floor—Floor function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-33
fmod—Floating point remainder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-33
fopen—Open a named file on the host’s disk . . . . . . . . . . . . . . . . . . . . . . . A-34
fprintf—Write formatted output to a stream . . . . . . . . . . . . . . . . . . . . . . . . A-36
fputc—Write a single character to a stream. . . . . . . . . . . . . . . . . . . . . . . . . A-36
fputs—Write a string to a stream. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-37
F
Freescale Semiconductor, Inc.
n
.