Sams Teach Yourself C in 21 Days

(singke) #1
strpbrk() function, 499
strrchr() function, 496
strspn() function, 498
strstr() function, 499
secondary modules, 594
seconds.c, 67
semicolon (;), 106, 113, 132
sequences, trigraph, 162
sequential file access
versus random access, 457
fseek() function, 460, 463
ftell()/rewind() functions, 458
ftell/rewind() functions, 460
setLayout method, 755
shapes, drawing with AWT, 751-754
shift operators, 582
short type, pointers, 201
signed decimal integer, displaying, 152
signs of numbers, get_int() function, 509
SimpleClass class, 726
sin() function, 534
single-dimensional arrays, 176-180
sinh() function, 535
size
of data types, 801-803
maximum/minimum values, 803-809
printing (listing D.2), 802
sizeof operator, 189
size_t type, 482
sleep() function, 219-220, 320
sorting
arrays of pointers, 402
controlling in pointers to functions, 413
sorting library functions
example, 550, 553, 556
qsort, 550
source code, 10
compiling, 12-13
creating, 10
editors, 11
external variables, scope, 289

hello.c, 16
linking, 13
white space, 60
source files
modular programming, 593
naming, 11
spaghetti code, 316
specifying packages, package keyword, 725
sqrt() function, 535
square brackets [ ], arrays, 177
square() function, 114
stack, passing by value, 516
stand-alone applications, applets, compared,
759
standard directory, #include directive, 607
standard input/output files, 339-340
statements, 60
branching, 314
break, 310-312
break statements, including in switch state-
ments, 322-324
case statements, 328-329
compound, 61
continue, 312-313
do...while, 141-142
for, 125-130
arrays, 124
nesting, 131-132
structure, 125
goto, 314-316
if, 73-75, 115
else clause, 76-77
in functions, 100
iteration, 118
null, 61
of functions, writing, 110-111
return, 100-102, 111-112
switch, 321-329
menu systems, executing, 324
switch statements
break statements, including, 322-324

924 searching strings

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

Free download pdf