H&S III problems

Rex Jaeschke rex at aussie.COM
Thu Mar 21 05:46:31 AEST 1991


Re the posting from vinoski at apollo.hp.com, Sam Harbison replies:


Stephen,

Your message on comp.lang.c regarding C:A Reference Manual (3/e) was
forwarded to me.  I looked at the example you mentioned (p. 287), and
it is indeed incorrect. Sorry.  Here's a correction, in the style of the
current example:

          #include <string.h>
          char *strcat(dest,src)
            char *dest;
            const char *src;
          {
            char *s = dest + strlen(dest);    /* changed */
            strcpy(s, src);                   /* changed */
            return dest;
          }

As for the other typos you mentioned, please send me a list of what
you found and I will have the problems fixed in the next printing.
Like software bugs, book bugs only get fixed when they get reported.
My list of "known bugs" with the 3rd edition was empty until I saw
your mail.

Thanks,
Sam Harbison
Pine Creek Software
305 S. Craig St., Suite 300
Pittsburgh, PA 15213
+1 412 681 9811
harbison at bert.pinecreek.com

Rex

----------------------------------------------------------------------------
Rex Jaeschke     |  Journal of C Language Translation  | C Users Journal
(703) 860-0091   |        2051 Swans Neck Way          | DEC PROFESSIONAL
rex at aussie.COM   |     Reston, Virginia 22091, USA     | Programmers Journal
----------------------------------------------------------------------------
Convener of the Numerical C Extensions Group (NCEG)
X3J11 member and US International Representative to ISO C (WG14)
----------------------------------------------------------------------------



More information about the Comp.std.c mailing list