A89: Re: C Bug?


[Prev][Next][Index][Thread]

A89: Re: C Bug?




> Why would the following lines of code cause a program to run fine the first
> time, and crash the second time it was run?
>
>  do {
>   if(_rowread(0xfffd & 128)

Looks like you're missing a ")" here...

>    break;

Are there more lines inside the do...while loop? Won't this just break out of
the if() ?

>  } while(!(_rowread(0xFFFE) & 16));
>
> And I know these lines are the problem, because when my friend took them
> out, his program ran fine every time he ran it.  Yet, when he put them in,
> it crashed on the second run.


--
 / Niklas Brunlid
Check out Prosit for the TI-89 / TI-92+ at http://prosit.ticalc.org
Random PQF Quote follows:

If you take the small view, the universe is just something small and round,
like those water-filled balls which produce a miniature snowstorm when you
shake them. Although, unless the ineffable plan is a lot more ineffable
than it's given credit for, it does not have a large plastic snowman at the
bottom.
        -- (Terry Pratchett & Neil Gaiman, Good Omens)






References: