Sams Teach Yourself C in 21 Days

(singke) #1
passing array of pointers to, 400
passing arrays to, 211-216
passing by reference, 516
passing by value, 516
passing multidimensional arrays to with a
pointer, 394, 397
passing pointers to, 515-519
passing structures as arguments, 273-275
passing structures to, 273-275
placing, 118-119
pointers to, 406
declaring, 407
initializing, 407-412, 415-416
pow, 536
printf(), 13, 32, 110, 148, 237, 361-368
conversion specifiers, 152-154
escape sequences, 149-152, 365
field-width specifier, 364
flags, 364
format strings, 148
l modifier, 363
precision specifier, 364
print_report, 152
prototypes, 99-102
putc(), 360, 451
putchar(), 358, 360
puts(), 113, 156, 236, 360-361
realloc(), 575-577
remove, 465
rename, 466
return keyword, 111
return statements, 100-102, 111-112
returning pointers, 526-528
rewind(), 458-460
scanf(), 32, 157, 160-161, 241-243, 356-358
arguments, 350-352
conversion specifiers, 350-352
handling extra characters, 352-355
precision modifiers, 352

searching
bsearch, 549
example, 550, 553, 556
sin(), 534
sinh(), 535
sleep(), 219-220, 320
sorting
example, 550, 553, 556
qsort, 550
sqrt, 535
square(), 114
statements, 100
strcat(), 487
strchr(), 495
strcmp, 491
strcpy(), 483
arrays of pointers, 404
arrays of structures, 261
strcspn(), 496
strdup(), 486
strftime, 539
strlen(), 481-483
arrays of pointers, 404
strlwr(), 501
strncat(), 489
strncmp, 493
strncpy(), 485
strnset(), 502
strpbrk(), 499
strrchr(), 496
strrev(), 502
strset(), 502
strspn(), 498
strstr(), 499
structured programming, 102
advantages, 102-103
hierarchical structure, 104
planning, 103-104
tasks and subtasks, 103
top-down approach, 104-105

functions 907

How can we make this index more useful? Email us at [email protected]

51 448201x-Index 8/13/02 11:23 AM Page 907

Free download pdf