Article View: comp.std.c
Article #2571H&S III problems
From: Rex Jaeschke
Date: Wed, 20 Mar 1991 19:46
Date: Wed, 20 Mar 1991 19:46
44 lines
1940 bytes
1940 bytes
Re the posting from vinoski@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@bert.pinecreek.com
Rex
----------------------------------------------------------------------------
Rex Jaeschke | Journal of C Language Translation | C Users Journal
(703) 860-0091 | 2051 Swans Neck Way | DEC PROFESSIONAL
rex@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)
----------------------------------------------------------------------------
Technical Details
Message-ID:
<62.UUL1.3#5077@aussie.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!aussie!rexShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!aussie!rex From: rex@aussie.COM (Rex Jaeschke) Newsgroups: comp.std.c Subject: H&S III problems Message-ID: <62.UUL1.3#5077@aussie.COM> Date: 20 Mar 91 19:46:31 GMT Organization: Journal of C Language Translation Lines: 44