Re: Need help with my program
From: Eric Sosman (Eric.Sosman_at_sun.com)
Date: 10/17/03
- Next message: Eric Sosman: "Re: How to extract bytes from a long?"
- Previous message: Bill Cunningham: "Re: macros"
- In reply to: Not Really Me: "Re: Need help with my program"
- Next in thread: Not Really Me: "Re: Need help with my program"
- Reply: Not Really Me: "Re: Need help with my program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Oct 2003 18:07:35 -0400
Not Really Me wrote:
>
> "Joona I Palaste" <palaste@cc.helsinki.fi> wrote in message
> news:bmmn46$rj3$1@oravannahka.helsinki.fi...
> > DarkKobold <none@thanks.com> scribbled the following
> > on comp.lang.c:
>
> <snip>
> > > for (i = 0; i<= 7; i++)
> > > {
> > > if ((buffer[curr] & y) == y)
> > > // ^^ this line is the main problem I think.
>
> <snip>
>
> > > y << 1;
> >
>
> Also, it appears that y is uninitialized when it is first used. It needs to
> have a value before you use it the first time. You can't assume that it
> starts at zero.
The initialization did not appear in the extract at
the top, but you'll find it right there in plain sight
if you read the "complete" code later in the message.
-- Eric.Sosman@sun.com
- Next message: Eric Sosman: "Re: How to extract bytes from a long?"
- Previous message: Bill Cunningham: "Re: macros"
- In reply to: Not Really Me: "Re: Need help with my program"
- Next in thread: Not Really Me: "Re: Need help with my program"
- Reply: Not Really Me: "Re: Need help with my program"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]