Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!aero-c!lmiller From: lmiller@aero.org (Lawrence H. Miller) Newsgroups: comp.misc Subject: Re: H&S III strcat() wrong? Message-ID: <1991Mar20.194401.7232@aero.org> Date: 20 Mar 91 19:44:01 GMT References: <5075771f.20b6d@apollo.HP.COM> <1991Mar20.004013.18442@tkou02.enet.dec.com> Sender: news@aero.org Organization: The Aerospace Corporation, El Segundo, CA Lines: 31 In article <1991Mar20.004013.18442@tkou02.enet.dec.com> diamond@jit345.enet@tkou02.enet.dec.com (Norman Diamond) writes: >In article <5075771f.20b6d@apollo.HP.COM> vinoski@apollo.HP.COM (Stephen Vinoski) writes: > >>Does anybody actually proofread technical books before publishing them anymore? > >Did they ever? >Part of the folklore is that examples should be tested before publishing. >It is a rare author who actually does so. I'm glad if you can get a refund. In the revision of our C book (**) to conform to the C standard, we are rigorously testing our programs on several different machines and allegedly standard conforming compilers. Needless to say, this has been most illuminating. There are lots of subtle bugs that creep in (one recent one was processing bytes as type char: they were unsigned on one machine, signed on another--we changed the type to unsigned char; another was in using a pointer to an array, and in processing the array from end to start; the loop ends up with the pointer pointing to one BEFORE the start of the array--shame, shame). The book will be out later because of this, but at a buck a bug paid out, we'll save some money!! (** Miller and Quilici, Programming in C, John Wiley & Sons) -- Larry Miller Aerospace Corporation lmiller@aerospace.aero.org 213-336-5597