< previous page page_a9 next page >

Page A9
exit(exitStatus)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameter:
Effect:
Function return value:
An int expression exitStatus
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Program execution terminates immediately with all files properly closed
None (a void function)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
By convention, exitStatus is 0 to indicate normal program completion and is nonzero to indicate an abnormal termination.
labs(i)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameter:
Function return value:
A long expression i
A long value that is the absolute value of i
rand()
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameter:
Function return value:
Note:
None
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A random int value in the range 0 through RAND_MAX, a constant defined in stdlib.h (RAND_MAX is usually the same as INT_MAX)
See srand below.
srand(seed)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameter:
Effect:
Function return value:
Note:
An int expression seed, where seed > 0
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Using seed, the random number generator is initialized in preparation for subsequent calls to the rand function.
None (a void function)
If srand is not called before the first call to rand, a seed value of 1 is assumed.
system(str)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameter:
Effect:
Function return value:
Note:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
A string (null-terminated char array) str representing an operating system command, exactly as it would be typed by a user on the operating system command line
The operating system command represented by
str is executed.
An int value that is system-dependent
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Programmers often ignore the function return value, using the syntax of a void function call rather than a value-returning function call.

The Header File string.h
strcat(toStr, fromStr)
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Parameters:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Strings (null-terminated char arrays) toStr and fromStr, where toStr must be large enough to hold the result

 
< previous page page_a9 next page >