Re: Pointers



Ben Bacarisse wrote:

.... snip ...

That is only one symptom. You program has quite a few errors.
The reason why it does what you say is actually self-evident in
the code, but it could do almost anything because it exhibits the
dreaded "undefined behaviour" before getting to that part.

<big snip>
for (tmp = emp1; tmp ; tmp = tmp->next)

BOOM!

Now what can you find wrong with that?

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>



--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • Re: Pointers
    ... CBFalconer writes: ... snip ... ... That is only one symptom. ... The reason why it does what you say is actually self-evident in ...
    (comp.lang.c)
  • Re: Pointers
    ... CBFalconer wrote: ... snip ... ... That is only one symptom. ... The reason why it does what you say is actually self-evident in ...
    (comp.lang.c)
  • Re: Other JSF options
    ... the point of firm positions of disagreement, so my comments below will be ... <snip stuff there is no use arguing further> ... Nor, AFAIR, did the GAO claim that the M60A3 was "inherently" a better tank ... And of course the reason, most of the reason for the current slip was the ...
    (rec.aviation.military)
  • Re: I know you guys would hate me for this....
    ... usually just snip them. ... the reason why we are responding to it, but merely responding for the sake ... of being sensitive to your cat. ... If Ranmao wants a hug, ...
    (rec.games.computer.ultima.dragons)
  • Re: OT:Thanksgiving
    ... tentative excuse, but not the reason. ... Our new government is founded upon exactly the opposite idea; ... the negro is not equal to the white man; that slavery - subordination to ...
    (comp.lang.cobol)