Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
ePub | Page 16 2nd paragraph from the bottom |
delcared -> declared Note from the Author or Editor: |
Anonymous | Oct 15, 2012 | |
Printed | Page 23 Table 2-4 |
The maximum value listed for a four byte unsigned int is shown as: 2,147,483,647. |
Anonymous | May 11, 2012 | |
Printed | Page 25 3rd paragraph from the bottom |
The reference to Table 2-4 should refer to Table 2-5 instead. Note from the Author or Editor: |
Anonymous | May 11, 2012 | |
Printed | Page 34 4th paragraph |
0x.02B3p0 should be 0x.02BCp0 |
Anonymous | May 11, 2012 | |
Printed | Page 57 line 2 |
Change "expression" to "assignment" |
Anonymous | May 11, 2012 | |
Printed | Page 65 last paragraph |
pg 65 (Ch 5, increment and decrement operators), |
Anonymous | Jan 27, 2011 | May 11, 2012 |
Printed | Page 68 last paragraph, line 5 |
Change |
Anonymous | May 11, 2012 | |
Printed | Page 75 second to last line before the heading "Other Operators" (last line of the three code example lines) |
Add missing right parenthesis before the dot: |
Anonymous | May 11, 2012 | |
Printed | Page 78 Examples after second paragraph |
With gcc-4.0.0 (Mac OS X, PowerPC), the expression "sizeof(*int)" gives rise to a parse error ("parse error before 'int'"). Using "sizeof(int*) instead works fine. Note from the Author or Editor: |
Anonymous | May 11, 2012 | |
Printed | Page 106 The 6th non-blank line of Example 7-7 (the body of function 'swapf') |
The last occurrence of 'p2' should be preceded by an asterisk. |
Anonymous | May 11, 2012 | |
Printed | Page 109 under the list item "void va_end( va_list, argptr );", line 3 |
Change "a function pointer" to "an argument pointer" |
Anonymous | May 11, 2012 | |
Printed | Page 113 in both code fragments, middle and bottom of page |
Change "myarray" to "myArray" in a total of three instances |
Anonymous | May 11, 2012 | |
Printed | Page 114 in the for loop after 2nd paragraph |
the comparison in the for loop *p < myArray + A_SIZE compares between an integer and a pointer which is not the intended purpose here. It gives warning on gcc 4.1.0 Note from the Author or Editor: |
Anonymous | Jun 08, 2008 | May 11, 2012 |
Printed | Page 117 Code snippet, middle of page |
if ( sizeof(str1) >= ( strlen( str1 ) + strlen( str2 ) + 1 ) |
Anonymous | May 11, 2012 | |
Printed | Page 127 bottom/128, top |
Omit "(see "Implicit Pointer Conversion" in Chapter 4)" |
Anonymous | May 11, 2012 | |
Printed | Page 129 bottom, last line before the example |
Change "a constant pointer does not necessarily point to a constant object:" |
Anonymous | May 11, 2012 | |
Printed | Page 131 bottom, line 1 of the example |
Change "int a[200];" to "char a[200];" |
Anonymous | May 11, 2012 | |
Printed | Page 140 line 7 (the second one-line code snippet) |
Change |
Anonymous | May 11, 2012 | |
Printed | Page 172 Third bullet point |
Please change the third bullet point as follows |
Anonymous | May 11, 2012 | |
Printed | Page 181 line 5 |
Change "Example 12-2" to "Example 12-3" |
Anonymous | May 11, 2012 | |
Printed | Page 192 bottom |
If possible, insert two "include" directives before the searchFile |
Anonymous | May 11, 2012 | |
Printed | Page 194 line 16 |
Change "ARRAY_LEN" to "ARRAY_LEN * sizeof(Record_t)" |
Anonymous | May 11, 2012 | |
Printed | Page 194 line 32 (8 lines above the "Formatted Output" heading) |
Change |
Anonymous | May 11, 2012 | |
Printed | Page 205 bottom, second to last text line before example |
Change "message.txt" to "messages.txt" |
Anonymous | May 11, 2012 | |
Printed | Page 264 top |
There are four more functions that actually belong in Table 16-18. They are |
Anonymous | May 11, 2012 | |
Printed | Page 287 Section "carg", line 1 of the Example |
Change "real" to "complex", thus: |
Anonymous | May 11, 2012 | |
Printed | Page 288 section "casinh", the Synopsis line |
Change "cosine" to "sine", thus: |
Anonymous | May 11, 2012 | |
Printed | Page 288 end of page |
Omit the last part of the "See Also" list from the last semicolon on: |
Anonymous | May 11, 2012 | |
Printed | Page 290 section "cbrt", last line of the example |
Change "sma_km" to "dist_km", thus: |
Anonymous | May 11, 2012 | |
Printed | Page 295 |
Insert a section for the function clog() before section "conj" (if possible). |
Anonymous | ||
Printed | Page 312 section "feholdexcept", lines 2 and 8 of the example |
Change "hypoteneuse" to "hypotenuse" in two instances. |
Anonymous | May 11, 2012 | |
Printed | Page 315 top, second to last line of the example for feraiseexcept() |
Change "%flags X. |
Anonymous | May 11, 2012 | |
Printed | Page 316 section "fesetround" |
Add "C99" tag at right in the heading line, thus: |
Anonymous | May 11, 2012 | |
Printed | Page 318 section "fflush" |
First paragraph, third sentence: |
Anonymous | May 11, 2012 | |
Printed | Page 323 section "fgetws", first text paragraph, line 3 |
Change "char pointer" to "wchar_t pointer" |
Anonymous | May 11, 2012 | |
Printed | Page 334 bottom, last text paragraph, first line |
Change |
Anonymous | May 11, 2012 | |
Printed | Page 337 lines 21 to 33 of the example code. |
(Code change because fgets() returns NULL at end-of-file): |
Anonymous | May 11, 2012 | |
Printed | Page 339 lines 2 and 3 |
Change "under wchar.h in Chapter 15" to "in table 16-2" |
Anonymous | May 11, 2012 | |
Printed | Page 341 Second Example Code |
In the second example code page 341, printed version We found: Note from the Author or Editor: |
Steven Sierra Forero | Nov 13, 2012 | |
Printed | Page 343 line 2 of the example for gets |
Delete the line: |
Anonymous | May 11, 2012 | |
Printed | Page 343 line 3 words 10 and 11 |
...attempt to store characters past the end of the of the available.... Note from the Author or Editor: |
Anonymous | Apr 02, 2013 | |
Printed | Page 344 section "getwchar", last two sentences of the text paragraph |
Change "file" to "stream" and "stdin" (as at getchar), thus: |
Anonymous | May 11, 2012 | |
Printed | Page 345 text paragraph after the description of the structure struct tm, and before the "Example" heading |
Change "as a" to "in", move "usually", and add a comma, thus: |
Anonymous | May 11, 2012 | |
Printed | Page 350 section "isdigit" |
Delete one and a half sentences, which span a paragraph break: |
Anonymous | May 11, 2012 | |
Printed | Page 351 Example in the isfinite section |
double vsum( int n, va_list argptr ) Note from the Author or Editor: |
Anonymous | Aug 28, 2009 | May 11, 2012 |
Printed | Page 358 section "isunordered" |
In the "isunordered" section heading line, add the "C99" tag at right. |
Anonymous | May 11, 2012 | |
Printed | Page 362 section "iswblank" |
In the "iswblank" section heading line, add the "C99" tag at right. |
Anonymous | May 11, 2012 | |
Printed | Page 364 section "iswdigit", second paragraph of descriptive text |
Delete the first two lines of the paragraph and capitalize the "The" that follows. |
Anonymous | May 11, 2012 | |
Printed | Page 365 section "iswlower", last sentence of first paragraph of descriptive text |
Change "islower()" to "iswlower()". |
Anonymous | May 11, 2012 | |
Printed | Page 368 top (above the section header "iswxdigit") |
At the end of the "See Also" list for isxdigit, delete the following repeated phrase: |
Anonymous | May 11, 2012 | |
Printed | Page 375 bottom, sectiom "log1p" |
In the last two lines, which show the prototypes of log1pf() and log1pl(), |
Anonymous | May 11, 2012 | |
Printed | Page 376 section "log2" |
Delete the "(C99)" tag to the right of these two function prototypes: |
Anonymous | May 11, 2012 | |
Printed | Page 380 Example |
Change lines 8, 12, and 17 of the example code. |
Anonymous | May 11, 2012 | |
Printed | Page 383 section "mbrtowc", second text paragraph |
Add the following sentence at the end of the paragraph: |
Anonymous | May 11, 2012 | |
Printed | Page 395 subsection "Conversion specification syntax", after the |
syntax statement: Change the first descriptive sentence to include '#' |
Anonymous | May 11, 2012 | |
Printed | Page 397 just below the middle of the page |
Change "256" to "512" in the example code and in the output, thus: |
Anonymous | May 11, 2012 | |
Printed | Page 399 section "putc", subsection "See Also" |
Delete "C99 ", leaving "the functions to read and write" |
Anonymous | May 11, 2012 | |
Printed | Page 400 section "putchar", subsection "See Also" |
Again, delete "C99 ", leaving "the functions to read and write" |
Anonymous | May 11, 2012 | |
Printed | Page 412 bottom |
The second and third items in the bullet list need to be amended as follows: |
Anonymous | May 11, 2012 | |
Printed | Page 418 section "setvbuf", list item "_IOLBF" |
Change to: |
Anonymous | May 11, 2012 | |
Printed | Page 419 section "signal" |
The bullet list should be only three items; the fourth bullet item should be a plain text paragraph. |
Anonymous | May 11, 2012 | |
Printed | Page 421 about the middle of the page, the code lines that begin the definition of the function sigint_handler() |
Change "char c;" to "int c = 0;" (because tolower() returns int), thus: |
Anonymous | May 11, 2012 | |
Printed | Page 424 Under snprintf, first paragraph, last sentence |
The sentence says that "sprintf() writes nothing to dest". The sprintf should be snprintf(note addition of "n" to routine name), since this is talking about the behavior of the snprintf routine. Note from the Author or Editor: |
Anonymous | Nov 06, 2013 | |
Printed | Page 433 Table 17-10 |
The table entry for 'd' occurs twice, before and after 'D'. |
Anonymous | May 11, 2012 | |
Printed | Page 435 top, line 1 of the example |
Append a semicolon at the end of the line. |
Anonymous | May 11, 2012 | |
Printed | Page 443 middle of page, section "strtoumax", subsection "See Also" |
Change first item, "strtoumax()", to "strtoimax()". |
Anonymous | May 11, 2012 | |
Printed | Page 444 middle of page, in the example for section "strxfrm" |
Change lines 15, 17 and 18 of the code as follows: |
Anonymous | May 11, 2012 | |
Printed | Page 444 section "swprintf", in the example, code line 5 |
Break up the line: |
Anonymous | May 11, 2012 | |
Printed | Page 450 section "toupper" |
Change: |
Anonymous | May 11, 2012 | |
Printed | Page 465 line 2 |
Delete: ",or arrays of wide characters," leaving: |
Anonymous | May 11, 2012 | |
Printed | Page 465 section "wcscopy" |
In the function prototype, change "s1" to "dest" and change "s2" to "src". |
Anonymous | May 11, 2012 | |
Printed | Page 471 section "wcsrtombs" |
In the function prototype at the top of the section, |
Anonymous | May 11, 2012 | |
Printed | Page 483 section "wmemchr", first line of descriptive text |
Change the italic "c" in "with the value of c" to "wc". |
Anonymous | May 11, 2012 | |
Printed | Page 484 line 4 |
Delete "(evaluated as unsigned char) ". |
Anonymous | May 11, 2012 | |
Printed | Page 486 bottom, section "wmemset" |
In the first line of the descriptive text (third to last line of the page), |
Anonymous | May 11, 2012 | |
Printed | Page 487 Table 17-11, last line, right column |
Delete ", no string terminator". |
Anonymous | May 11, 2012 | |
Printed | Page 498 Second paragraph, last line |
LIBARY_PATH should be LIBRARY_PATH. |
Anonymous | May 11, 2012 | |
Printed | Page 498 Command line example after third paragraph. |
The example: |
Anonymous | May 11, 2012 | |
Printed | Page 503 Third paragraph, 1st sentence |
"The -Wextra option also warns expressions..." |
Anonymous | May 11, 2012 | |
Printed | Page 523 second par. |
SYMTABS = $(OBJ .o=.sym) |
Anonymous | May 11, 2012 | |
Printed | Page 523 Example 19-4, middle of page |
clean: |
Anonymous | May 11, 2012 | |
Printed | Page 523 second paragraph |
Example 19-4 will never build symbols. Note from the Author or Editor: |
Anonymous | May 11, 2012 | |
Printed | Page 529 in the paragraph describing the list item ".LOW_RESOLUTION_TIME", |
line 4: |
Anonymous | May 11, 2012 | |
Printed | Page 543 in the paragraph describing the list item ".NOTPARALLEL", last sentence |
Change this: |
Anonymous | May 11, 2012 | |
Printed | Page 562 example at the top of the page, last three lines of the example |
In the third to last line of the example, change "21" to "27", and |
Anonymous | May 11, 2012 |