Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #8841

Re: 13 year old C source code

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: 13 year old C source code
Date 2011-07-28 15:27 -0700
Organization None to speak of
Message-ID <lnbowef3cp.fsf@nuthaus.mib.org> (permalink)
References <j0sbru0am8@news4.newsguy.com> <lnk4b2fa62.fsf@nuthaus.mib.org> <1311891015.459259@rcdn-nntpcache-2>

Show all headers | View raw


"Scott Fluhrer" <sfluhrer@ix.netcom.com> writes:
[...]
> One thing I remember DeSmet not catching:
>
>     char c;
>     c = "T";    /* Yup; c got set to the lower 8 bits of the address, 
> without even a warning from the compiler! */

Ok, that could explain why the code initializing a char to -180 never
got fixed (the compiler wouldn't have warned about it).  It wouldn't
explain why it was written that way in the first place, but assuming the
code actually worked, either leaving it alone and ignoring the warnings,
or changing the value from -180 to 76, might be ok.

But we still have no clue what the char array is actually used for,
and the OP hasn't given us much feedback.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

13 year old C source code buck <buck@private.mil> - 2011-07-28 19:04 +0000
  Re: 13 year old C source code jacob navia <jacob@spamsink.net> - 2011-07-28 21:30 +0200
    Re: 13 year old C source code Francois Grieu <fgrieu@gmail.com> - 2011-07-28 21:35 +0200
      Re: 13 year old C source code jacob navia <jacob@spamsink.net> - 2011-07-28 21:48 +0200
        Re: 13 year old C source code Keith Thompson <kst-u@mib.org> - 2011-07-28 13:37 -0700
    Re: 13 year old C source code buck <buck@private.mil> - 2011-07-28 20:28 +0000
  Re: 13 year old C source code Francois Grieu <fgrieu@gmail.com> - 2011-07-28 21:31 +0200
  Re: 13 year old C source code Keith Thompson <kst-u@mib.org> - 2011-07-28 13:00 -0700
    Re: 13 year old C source code "Scott Fluhrer" <sfluhrer@ix.netcom.com> - 2011-07-28 18:10 -0400
      Re: 13 year old C source code Keith Thompson <kst-u@mib.org> - 2011-07-28 15:27 -0700
  Re: 13 year old C source code Rich Webb <bbew.ar@mapson.nozirev.ten> - 2011-07-28 15:53 -0400
  Re: 13 year old C source code Roberto Waltman <usenet@rwaltman.com> - 2011-07-28 16:18 -0400
    Re: 13 year old C source code Roberto Waltman <usenet@rwaltman.com> - 2011-07-28 16:34 -0400
  Re: 13 year old C source code Ben Pfaff <blp@cs.stanford.edu> - 2011-07-28 13:36 -0700
  Re: 13 year old C source code gordonb.mgm25@burditt.org (Gordon Burditt) - 2011-07-28 15:37 -0500
    Re: 13 year old C source code Robert Wessel <robertwessel2@yahoo.com> - 2011-07-28 17:33 -0500
      Re: 13 year old C source code gordonb.2omx0@burditt.org (Gordon Burditt) - 2011-07-28 18:48 -0500
        Re: 13 year old C source code Robert Wessel <robertwessel2@yahoo.com> - 2011-07-28 19:26 -0500
    Re: 13 year old C source code BGB <cr88192@hotmail.com> - 2011-07-28 16:09 -0700
  Re: 13 year old C source code Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-08-03 08:17 +0000

csiph-web