< previous page page_a8 next page >

Page A8
The Header File stddef.h
This header file defines a few system-dependent constants and data types. From this header file, the only item we use in this book is the following symbolic constant:
NULL
The system-dependent null pointer constant (usually 0)

The Header File stdlib.h
abs(i)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameter:
Function return value:
An int expression i
An int value that is the absolute value of i
atof(str)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameter:
Function return value:
Note:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A string (null-terminated char array) str representing a floating point number, possibly preceded by whitespace characters and a + or -
A
double value that is the floating point equivalent of the characters in str
Conversion stops at the first character in str that is inappropriate for a floating point number. If no appropriate characters were found, the return value is system-dependent.
atoi(str)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameter:
Function return value:
Note:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A string (null-terminated char array) str representing an integer number, possibly preceded by whitespace characters and a + or -
An
int value that is the integer equivalent of the characters in str
Conversion stops at the first character in str that is inappropriate for an integer number. If no appropriate characters were found, the return value is system-dependent.
atol(str)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameter:
Function return value:
Note:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A string (null-terminated char array) str representing a long integer, possibly preceded by whitespace characters and a + or -
A
long value that is the long integer equivalent of the characters in str
Conversion stops at the first character in str that is inappropriate for a long integer number. If no appropriate characters were found, the return value is system-dependent.

 
< previous page page_a8 next page >