Programming in C

(Barry) #1
522 functions

programs
Calculating Factorials Recursively
(8.16), 159-161
Calculating the Absolute Value (8.7),
129-131
Calculating the nth Triangular Number
(8.4), 123
Calculating the Square Root of a
Number (8.8), 132-133
Calling Functions (8.2), 121
Changing Array Elements in Functions
(8.11), 142-143
Converting a Positive Integer to Another
Base (8.14), 153-156
Finding the Greatest Common Divisor
and Returning the Results (8.6),
127-128
Finding the Minimum Value in an Array
(8.9), 138, 140
Illustrating Static and Automatic Variables
(8.15), 157-158
More on Calling Functions (8.3), 122
Multidimensional Variable-Length Arrays
(8.13A), 150-152
Revising the Function to Find the
Minimum Value in an Array (8.10),
140-142
Revising the Program to Find the
Greatest Common Divisor (8.5),
125-126
Sorting an Array of Integers into
Ascending Order (8.12), 144-146
Updating the Time by One Second
(9.5), 178-180
Using Multidimensional Arrays and
Functions (8.13), 147-150
Writing a Function in C (8.1),
120-121
prototype declaration, 124
putc( ), 477
putchar( ), 477
puts( ), 478

qsort( ), 274, 490-491
rand( ), 491
read_line( ), 213-215
realloc( ), 481
recursive, 159-161
remainder( ), 486
remove( ), 478
rename( ), 478
returning results from, 126-135
rewind( ), 478
rint( ), 487
rotate( ), 290-292
round( ), 487
scalar_multiply( ), 147
scalbln( ), 487
scalbn( ), 487
scanf( ), 206, 478
input values, 51-52
shift functions, 288-290
shift( ), 289
signbit( ), 483
sin( ), 487
sinh( ), 487
sort( ), 143-144, 146
sprintf( ), 478-479
sqrt( ), 487
square_root( ), 133
srand( ), 491
sscanf( ), 478-479
static functions, 339
static variables, 156
strcat( ), 230, 470
strchr( ), 470
strcmp( ), 230, 470
strcpy, 470-471
strcpy( ), 230
string functions, 470-472
string-to-number conversions, 479-481
string_length( ), 199, 272
string_to_integer( ), 228-230
strlen( ), 230, 471

25 0672326663 index 6/10/04 2:04 PM Page 522

Free download pdf