  Covers the C programming language in great detail. As always, the authors do an excellent job of explaining what's standard and what it replaces. Softcover. Previous edition c1995. |
|
|
xv | |
| Preface |
|
xvii | |
| PART 1 The C Language |
|
1 | (308) |
|
|
|
3 | (8) |
|
|
|
3 | (3) |
|
Which Dialect of C Should You Use? |
|
|
6 | (1) |
|
An Overview of C Programming |
|
|
7 | (1) |
|
|
|
8 | (1) |
|
|
|
9 | (2) |
|
|
|
11 | (32) |
|
|
|
11 | (7) |
|
|
|
18 | (2) |
|
|
|
20 | (1) |
|
|
|
20 | (1) |
|
|
|
21 | (2) |
|
|
|
23 | (1) |
|
|
|
24 | (14) |
|
|
|
38 | (1) |
|
On Character Sets, Repertoires, and Encodings |
|
|
39 | (2) |
|
|
|
41 | (2) |
|
|
|
43 | (30) |
|
|
|
43 | (1) |
|
Preprocessor Lexical Conventions |
|
|
44 | (2) |
|
Definition and Replacement |
|
|
46 | (13) |
|
|
|
59 | (2) |
|
|
|
61 | (5) |
|
|
|
66 | (1) |
|
|
|
67 | (2) |
|
|
|
69 | (1) |
|
|
|
70 | (1) |
|
|
|
71 | (2) |
|
|
|
73 | (50) |
|
Organization of Declarations |
|
|
74 | (1) |
|
|
|
75 | (8) |
|
Storage Class and Function Specifiers |
|
|
83 | (3) |
|
Type Specifiers and Qualifiers |
|
|
86 | (9) |
|
|
|
95 | (8) |
|
|
|
103 | (10) |
|
|
|
113 | (1) |
|
|
|
113 | (3) |
|
|
|
116 | (3) |
|
|
|
119 | (4) |
|
|
|
123 | (58) |
|
|
|
124 | (8) |
|
|
|
132 | (4) |
|
|
|
136 | (4) |
|
|
|
140 | (5) |
|
|
|
145 | (3) |
|
|
|
148 | (12) |
|
|
|
160 | (5) |
|
|
|
165 | (3) |
|
|
|
168 | (1) |
|
|
|
168 | (4) |
|
|
|
172 | (4) |
|
Type Names and Abstract Declarators |
|
|
176 | (2) |
|
|
|
178 | (1) |
|
|
|
179 | (2) |
|
Conversions and Representations |
|
|
181 | (22) |
|
|
|
181 | (7) |
|
|
|
188 | (6) |
|
|
|
194 | (6) |
|
|
|
200 | (1) |
|
|
|
201 | (2) |
|
|
|
203 | (56) |
|
Objects, Lvalues, and Designators |
|
|
203 | (1) |
|
Expressions and Precedence |
|
|
204 | (3) |
|
|
|
207 | (3) |
|
|
|
210 | (9) |
|
|
|
219 | (8) |
|
Binary Operator Expressions |
|
|
227 | (15) |
|
Logical Operator Expressions |
|
|
242 | (2) |
|
|
|
244 | (2) |
|
|
|
246 | (3) |
|
|
|
249 | (1) |
|
|
|
250 | (3) |
|
|
|
253 | (2) |
|
|
|
255 | (1) |
|
Optimization of Memory Accesses |
|
|
256 | (1) |
|
|
|
257 | (1) |
|
|
|
258 | (1) |
|
|
|
259 | (26) |
|
General Syntactic Rules for Statements |
|
|
260 | (1) |
|
|
|
260 | (1) |
|
|
|
261 | (1) |
|
|
|
262 | (2) |
|
|
|
264 | (2) |
|
|
|
266 | (8) |
|
|
|
274 | (3) |
|
Break and Continue Statements |
|
|
277 | (2) |
|
|
|
279 | (1) |
|
|
|
280 | (1) |
|
|
|
281 | (1) |
|
|
|
282 | (1) |
|
|
|
282 | (3) |
|
|
|
285 | (24) |
|
|
|
286 | (3) |
|
|
|
289 | (6) |
|
Formal Parameter Declarations |
|
|
295 | (3) |
|
Adjustments to Parameter Types |
|
|
298 | (1) |
|
Parameter-Passing Conventions |
|
|
299 | (1) |
|
|
|
300 | (1) |
|
|
|
301 | (1) |
|
Agreement of Return Types |
|
|
302 | (1) |
|
|
|
303 | (1) |
|
|
|
304 | (2) |
|
|
|
306 | (1) |
|
|
|
307 | (2) |
| PART 2 The C Libraries |
|
309 | (188) |
|
Introduction to the Libraries |
|
|
311 | (14) |
|
|
|
312 | (1) |
|
|
|
313 | (3) |
|
Library Headers and Names |
|
|
316 | (9) |
|
Standard Language Additions |
|
|
325 | (10) |
|
Null, ptrdiff_t, size_t, offsetof |
|
|
325 | (2) |
|
Edom, Erange, Eilseq, errno, strerror, perror |
|
|
327 | (2) |
|
|
|
329 | (1) |
|
va_list, va_start, va_arg, va_end |
|
|
329 | (4) |
|
Standard C Operator Macros |
|
|
333 | (2) |
|
|
|
335 | (12) |
|
isalnum, isalpha, iscntrl, iswalnum, iswalpha, iswcntrl |
|
|
336 | (2) |
|
|
|
338 | (1) |
|
isdigit, isodigit, isxdigit, iswdigit, iswxdigit |
|
|
338 | (1) |
|
isgraph, isprint, ispunct, iswgraph, iswprint, iswpunct |
|
|
339 | (1) |
|
islower, isupper, iswlower, iswupper |
|
|
340 | (1) |
|
isblank, isspace, iswhite, iswspace |
|
|
341 | (1) |
|
|
|
341 | (1) |
|
|
|
342 | (1) |
|
tolower, toupper, towlower, towupper |
|
|
342 | (1) |
|
wctype_t, wctype, iswctype |
|
|
343 | (1) |
|
|
|
344 | (3) |
|
|
|
347 | (12) |
|
strcat, strncat, wcscat, wcsncat |
|
|
348 | (1) |
|
strcmp, strncmp, wcscmp, wcsncmp |
|
|
349 | (1) |
|
strcpy, strncpy, wcscpy, wcsncpy |
|
|
350 | (1) |
|
|
|
351 | (1) |
|
strchr, strrchr, wcschr, wcsrchr |
|
|
351 | (1) |
|
strspn, strcspn, strpbrk, strrpbrk, wcsspn, wcscspn, wcspbrk |
|
|
352 | (2) |
|
strstr, strtok, wcsstr, wcstok |
|
|
354 | (1) |
|
strtod, strtof, strtold, strtol, strtoll, strtoul, strtoull |
|
|
355 | (1) |
|
|
|
356 | (1) |
|
strcoll, strxfrm, wcscoll, wcsxfrm |
|
|
356 | (3) |
|
|
|
359 | (4) |
|
|
|
359 | (1) |
|
|
|
360 | (1) |
|
memcpy, memccpy, memmove, wmemcpy, wmemmove |
|
|
361 | (1) |
|
|
|
362 | (1) |
|
|
|
363 | (44) |
|
File, Eof, wchar_t, wint_t, Weof |
|
|
365 | (1) |
|
fopen, fclose, fflush, freopen, fwide |
|
|
366 | (4) |
|
|
|
370 | (1) |
|
|
|
371 | (1) |
|
fseek, ftell, rewind, fgetpos, fsetpos |
|
|
372 | (2) |
|
fgetc, fgetwc, getc, getwc, getchar, getwchar, ungetc, ungetwc |
|
|
374 | (2) |
|
|
|
376 | (1) |
|
fscanf, fwscanf, scanf, wscanf, sscanf, swscanf |
|
|
377 | (8) |
|
fputs, fputwc, putc, putwc, putchar, putwchar |
|
|
385 | (1) |
|
|
|
386 | (1) |
|
fprintf, printf, sprintf, snprintf, fwprintf, wprintf, swprintf |
|
|
387 | (14) |
|
vfprintf, vfwprintf, vprintf, vwprintf, vsprintf, vswprintf, vfscanf, vf-wscanf, vscanf, vwscanf, vsscanf, vswscanf |
|
|
401 | (1) |
|
|
|
402 | (2) |
|
|
|
404 | (1) |
|
|
|
404 | (1) |
|
|
|
405 | (2) |
|
|
|
407 | (18) |
|
malloc, calloc, mlalloc, clalloc, free, cfree |
|
|
407 | (3) |
|
|
|
410 | (1) |
|
atof, atoi, atol, atoll 1 |
|
|
411 | (1) |
|
strtod, strtof, strtold, strtol, strtoll, strtoul, strtoull |
|
|
412 | (2) |
|
abort, atexit, exit,_Exit, Exit_Failure, Exit_Success |
|
|
414 | (1) |
|
|
|
415 | (1) |
|
|
|
416 | (1) |
|
|
|
417 | (2) |
|
abs, labs, llabs, div, ldiv, lldiv |
|
|
419 | (1) |
|
|
|
420 | (2) |
|
|
|
422 | (3) |
|
|
|
425 | (18) |
|
abs, labs, llabs, div, ldiv, Ildiv |
|
|
426 | (1) |
|
|
|
426 | (1) |
|
ceil, floor, lrint, llrint, lround, llround, nearbyint, round, rint, trunc |
|
|
427 | (1) |
|
|
|
428 | (1) |
|
frexp, ldexp, modf, scalbn |
|
|
429 | (1) |
|
exp, exp2, expml, ilogb, log, log10, log 1p, log2, logb |
|
|
430 | (2) |
|
cbrt, fma, hypot, pow, sqrt |
|
|
432 | (1) |
|
|
|
432 | (1) |
|
cos, sin, tan, cosh, sinh, tanh |
|
|
433 | (1) |
|
acos, asin, atan, atan2, acosh, asinh, atanh |
|
|
434 | (1) |
|
|
|
435 | (1) |
|
|
|
435 | (4) |
|
erf, erfc, Igamma, tgamma |
|
|
439 | (1) |
|
fpclassify, isfinite, isinf, isnan, isnormal, signbit |
|
|
440 | (1) |
|
copysign, nan, nextafter, nexttoward |
|
|
441 | (1) |
|
isgreater, isgreaterequal, isless, islessequal, islessgreater, isunordered |
|
|
442 | (1) |
|
|
|
443 | (10) |
|
clock, clock_t, Clocks_Per_Sec, times |
|
|
443 | (2) |
|
|
|
445 | (1) |
|
|
|
445 | (1) |
|
gmtime, localtime, mktime |
|
|
446 | (1) |
|
|
|
447 | (1) |
|
|
|
448 | (5) |
|
|
|
453 | (8) |
|
|
|
453 | (1) |
|
|
|
454 | (1) |
|
|
|
454 | (1) |
|
|
|
454 | (2) |
|
|
|
456 | (1) |
|
signal, raise, gsignal, ssignal, psignal |
|
|
456 | (2) |
|
|
|
458 | (3) |
|
|
|
461 | (6) |
|
|
|
461 | (2) |
|
|
|
463 | (4) |
|
|
|
467 | (10) |
|
|
|
467 | (3) |
|
|
|
470 | (1) |
|
Least-Size Types of a Minimum Width |
|
|
471 | (1) |
|
Fast Types of a Minimum Width |
|
|
472 | (1) |
|
Pointer-Size and Maximum-Size Integer Types |
|
|
473 | (1) |
|
Ranges of ptrdiff_t, size_t, wchar_t, wint_t, and sig_atomic_t |
|
|
474 | (1) |
|
imaxabs, imaxdiv, imaxdiv_t |
|
|
474 | (1) |
|
|
|
475 | (1) |
|
|
|
475 | (2) |
|
Floating-Point Environment |
|
|
477 | (6) |
|
|
|
477 | (1) |
|
Floating-Point Environment |
|
|
478 | (1) |
|
Floating-Point Exceptions |
|
|
479 | (2) |
|
Floating-Point Rounding Modes |
|
|
481 | (2) |
|
|
|
483 | (6) |
|
Complex Library Conventions |
|
|
483 | (1) |
|
complex,_Complex_I, imaginary,_Imaginary_I, I |
|
|
484 | (1) |
|
|
|
484 | (1) |
|
cacos, casin, catan, ccos, csin, ctan |
|
|
485 | (1) |
|
cacosh, casinh, catanh, ccosh, csinh, ctanh |
|
|
486 | (1) |
|
cexp, clog, cabs, cpow, csqrt |
|
|
487 | (1) |
|
carg, cimag, creal, conj, cproj |
|
|
488 | (1) |
|
Wide and Multibyte Facilities |
|
|
489 | (8) |
|
|
|
489 | (1) |
|
Conversions Between Wide and Multibyte Characters |
|
|
490 | (1) |
|
Conversions Between Wide and Multibyte Strings |
|
|
491 | (2) |
|
Conversions to Arithmetic Types |
|
|
493 | (1) |
|
Input and Output Functions |
|
|
493 | (1) |
|
|
|
493 | (1) |
|
Date and Time Conversions |
|
|
494 | (1) |
|
Wide-Character Classification and Mapping Functions |
|
|
494 | (3) |
| A The ASCII Character Set |
|
497 | (2) |
| B Syntax |
|
499 | (14) |
| C Answers to the Exercises |
|
513 | (8) |
| Index |
|
521 | |
|