Sams Teach Yourself C in 21 Days

(singke) #1
strftime() function, 539
string output functions, 360-361
string-literal operator (#), 603
string.h
strlen() function, 482
strlwr() function, 501
strupr() function, 501
stringizing operator (#), 603
strings, 223, 227
arrays of characters, 228
initializing, 228-229
arrays of pointers, 397
character test functions, 506, 509-510
comparing
strcat() function, 490
strcmp() function, 491
comparing while ignoring case, 494
concatenating
strcat() function, 487
strncat() function, 489
converting, 501
converting to numbers
atof() function, 505
atoi() function, 504
atol() function, 504
copying
strcpy() function, 483
strdup() function, 486
strncpy() function, 485
determining length, 481, 483
displaying, 235
printf() function, 237
puts() function, 236
filenames, 442
literal, 228
memory allocation, 229
at compilation, 230
malloc() function, 230-235
pointers to, 229

reading, 237
gets() function, 237-241
scanf() function, 241-243
searching, 494
strchr() function, 495
strcspn() function, 496
strpbrk() function, 499
strrchr() function, 496
strspn() function, 498
strstr() function, 499
strset()/strnset() function, 502
white space, 61
strings (partial), comparing, 493
strlen() function, 481, 483
arrays of pointers, 404
strlwr() function, 501
strncat() function, 489
strncmp() function, 493
strncpy() function, 485
strnset() function, 502
strpbrk() function, 499
strrchr() function, 496
strrev() function, 502
strset() function, 502
strspn() function, 498
strstr() function, 499
struct keyword, 250, 253-254
structure, linked lists, 416
structure pointer operator, 270
structured programming, 102, 593-596.
See alsomodular programming
advantages, 102-103
arrays of pointers, 401
external variables, 289
functions, entries and exits, 113
hierarchical structure, 104
planning, 103-104
tasks and subtasks, 103
top-down approach, 104-105

926 strftime() function

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

Free download pdf