Errata

C Pocket Reference

Errata for C Pocket Reference

Submit your own errata for this product.

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
Printed Page 4
Section regarding comments, near end of page

Most of this book is very thorough about pointing out features that were not introduced into the language specification until C99. However, this paragraph about comments mentions both the original multiline "/*...*/" comment style, and also the single-line "//..." comment style borrowed from C++. The C++-style comments were not officially made a part of C until C99 -- despite the fact that some compilers, including gcc, already accepted C++-style comments in C prior to C99, and continue to do so even when the C99 specification is not being used! It could be considered misleading that this detail is omitted, because of the diligence of the rest of the book in pointing out C99-specific features.

Caleb  Sep 11, 2013 
Printed Page 12
Last sentence (formula)

Formula printed is:
S = 1, Exponent = 1 + 127 = 128, Mantissa = 0.25

Should be:
S = 1, Exponent = 1 + 127 = 128, Mantissa = 1.25

Mantissa should be 1.25, not 0.25.

Joel Godin  Nov 19, 2014 
Printed Page 80
description of fread

"Reads up to n objects of length sz from the file and copies them to the memory location pointed to by buf."

fread's prototype uses void *buffer, so either the prototype has to be changed (to buf) or the description has to be changed (to buffer).

agezerlis  Oct 26, 2012 
Printed Page 93
Table 31

"Trigonometric functions asinh(), acosh(), atanh()"

These are inverse hyperbolic functions, so as per Table 34 (p. 95) they should be listed under "Hyperbolic functions".

agezerlis  Oct 27, 2012