Page 20 - C-Language
P. 20
Thread Storage Duration 328
Automatic Storage Duration 328
External and Internal Linkage 328
Examples 328
typedef 328
auto 329
static 329
extern 331
register 331
_Thread_local 332
Chapter 52: Strings 334
Introduction 334
Syntax 334
Examples 334
Calculate the Length: strlen() 334
Copy and Concatenation: strcpy(), strcat() 335
Comparsion: strcmp(), strncmp(), strcasecmp(), strncasecmp() 336
Tokenisation: strtok(), strtok_r() and strtok_s() 338
Find first/last occurrence of a specific character: strchr(), strrchr() 340
Iterating Over the Characters in a String 341
Basic introduction to strings 342
Creating Arrays of Strings 343
strstr 344
String literals 344
Zeroing out a string 345
strspn and strcspn 346
Copying strings 347
Pointer assignments do not copy strings 347
Copying strings using standard functions 348
strcpy() 348
snprintf() 349
strncat() 349

