Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Ch13 Section: "The GNU Scientific Library" Code listing: "Example 13-4" |
The notes underneath the code listing for "Example 13-4" don't link back to the specific line of code that the note is talking about. Note from the Author or Editor: |
Yung-Jin (Joey) Hu | Apr 16, 2017 | |
? Example 1.1 |
You write "(for me, at least; if the statistical jargon is Greek to you, that’s OK)" |
Anonymous | Jul 05, 2019 | |
Printed | Page 47 4th paragraph |
p xmlElemDump(stdout, $arg0, xmlDocGetRootElement($arg0)) |
bl4krat | Sep 04, 2020 |
Other Digital Version | 52 1402 of 10985 of the Kindle Edition |
The book states to use "valgrind --db-attach=yes your_program"; however, that option appears to be deprecated. I'm on Debian 9 using valgrind-3.12.0.SVN. I believe the modern-equivalent is "--vgdb=no|yes|full --vgdb-error=0" |
Andy Alt | Dec 14, 2018 |
Other Digital Version | 56 Location 1494 in the Kindle Edtion |
I'm reading from the Kindle Edition, and using Debian 9, automake v1.15. |
Andy Alt | Dec 10, 2018 |
Printed | Page 153 Example 7-2 in main() at call to at_quick_exit |
On OS X Mojave, the compiler gives a warning when compiling noreturn.c with CFLAGS="-Wall -g -std=gnu11 -O3": |
Artagan Malsagov | Nov 28, 2020 |
Printed | Page 155 Third to last paragraph |
The sentence "That's for a 32-bit float, which is the minimum standard anymore." I think the second part should be "...,which isn't the standard anymore."? |
Artagan Malsagov | Nov 28, 2020 |
Printed | Page 174 First and second paragraph |
1) First sentence of first paragraph: "...and some of the year-month values above...", I don't think there where any year-month values used in Ch.8 |
Artagan Malsagov | Dec 06, 2020 |
Printed | Page 177 Example before last paragraph of "Linkage with static and extern" |
In the example for header file "common_fns.h" the function: |
Artagan Malsagov | Jan 02, 2021 |
Printed | Page 183 1st paragraph |
The second sentence of the first paragraph (after example 8-6): "But when you compile it, you'll find that you get a warningclang says:...". I think "warning" and "clang" should be separated. |
Artagan Malsagov | Jan 03, 2021 |
Printed | Page 183-184 Example 8-7 |
When I compile constfusion.c on Mac OS X, I get the clang warning about discarding qualifiers in nested pointer types, but the output is: |
Artagan Malsagov | Jan 03, 2021 |
Printed | Page 183-184 Example 8-7 |
PS: result from question above (submitted Jan 03, 2021) resulted from compiling constfusion.c with: |
Artagan Malsagov | Jul 15, 2021 |
Printed | Page 188 Example 9-2 |
When compiling getstrings.c on Linux Ubuntu (and also when compiling sasprintf.c) I get a warning about ignoring the return value of asprintf: |
Artagan Malsagov | Feb 14, 2021 |
Printed | Page 188 Example 9-2 |
PS: warning above resulted from compiling getstrings.c with |
Artagan Malsagov | Jul 15, 2021 |
Printed | Page 189 Example 9-3 |
When compiling asprintf.c on MacOS the following error is generated: |
Artagan Malsagov | Mar 02, 2021 |
Printed | Page 189 Example 9-3 |
|
Artagan Malsagov | Jul 15, 2021 |
Printed | Page 193 Example 9-4 |
In example 9-4, sasprintf.c is missing preprocessor directive for asprintf: |
Artagan Malsagov | Jan 28, 2021 |
Printed | Page 240 Example 10-19 |
In the book, Example 10-19 misses the preprocessor directives to include asprintf. In the code on github these are included, but in the book example not. |
Artagan Malsagov | Mar 03, 2021 |