The C/Unix Programmer's Guide


AIX BEOS DesktopBSD FreeBSD Gentoo Linux Mac OS X
NetBSD OpenBSD PC-BSD QNX Solaris Ubuntu

Table of Contents

General
Detailed

Updates

Addendum
New Developments

Want to know more?

Some additional information about the book is available here.

Program source

The source code for all major program examples in the book is available as a tar ball. A script for compiling the programs is included. Download

Available at...

Amazon.com

Libraries

To order a copy for your library, please visit Coutts Library Service.

Purpose

The primary purpose of this addendum is to provide corrections to any misinformation contained in The C/Unix Programmer's Guide.

Minor spelling and grammatical errors will not be listed here. However, reports of any such errors are greatly appreciated.

Known errors and omissions in first AND second printings

  • Page 127, last line:

    "simply to" should read "simply counts to"

  • Page 182:

    The sample program must be compiled with the "-lm" option. This tells the linker to search the library libm.a, where it will find the sqrt() function.

    cc sample.c -lm

  • Page 213:

    In the example, the word "permutation" is misused. The program actually prints "ordered samples", not permutations.

  • Page 332:

    The footnote regarding linked lists should point to section 18.5.2, not 18.1.

  • Page 337:

    In both code fragments, the variable listsize should be defined as type size_t.

  • Page 493:

    The first statement in main() should read:

        names = read_names(name_list);
        

Known errors and omissions in first printing

  • Page 23, near top of page, value should read 19.25, not 21.25.

  • Page 35, last paragraph, first sentence should read as follows:

    Codes 00000000 - 00011111 (0-31 decimal) and code 01111111 (127 decimal) are the control characters.

  • Page 515, last paragraph, first sentence should read as follows: The read() function attempts to read count bytes from...