Re: subroutine stack and C machine model
- From: Seebs <usenet-nospam@xxxxxxxxx>
- Date: 31 Oct 2009 21:18:13 GMT
On 2009-10-31, Richard Heathfield <rjh@xxxxxxxxxxxxxxx> wrote:
It just happens to be the version I have. (In my defence, I didn't
actually buy it. A friend saw it on a remainder pile for a couple of
quid, and grabbed it as a gift for me. How nice.) If you have any
specific questions about it, let me know.
Check the example, probably right near page 53, of the "put_rec" function
which tries to write an array to disk (using sizeof(rec) to obtain
the size of an array argument...).
I believe that in the 2nd edition, the test is
if(len <> 1)
(Note: I just checked that it is page 53 in the third edition. I last
looked at that, I think, in 1995 or so. I have no idea why I remember
this and can only find my car keys about one day in two.)
-s
--
Copyright 2009, all wrongs reversed. Peter Seebach / usenet-nospam@xxxxxxxxx
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
.
- References:
- Re: subroutine stack and C machine model
- From: Richard Heathfield
- Re: subroutine stack and C machine model
- From: Richard Heathfield
- Re: subroutine stack and C machine model
- From: spinoza1111
- Re: subroutine stack and C machine model
- From: Richard Heathfield
- Re: subroutine stack and C machine model
- From: spinoza1111
- Re: subroutine stack and C machine model
- From: Richard Heathfield
- Re: subroutine stack and C machine model
- From: bartc
- Re: subroutine stack and C machine model
- From: Richard
- Re: subroutine stack and C machine model
- From: Seebs
- Re: subroutine stack and C machine model
- From: Richard
- Re: subroutine stack and C machine model
- From: Seebs
- Re: subroutine stack and C machine model
- From: Richard
- Re: subroutine stack and C machine model
- From: Seebs
- Re: subroutine stack and C machine model
- From: spinoza1111
- Re: subroutine stack and C machine model
- From: Seebs
- Re: subroutine stack and C machine model
- From: spinoza1111
- Re: subroutine stack and C machine model
- From: Richard Heathfield
- Re: subroutine stack and C machine model
- From: Seebs
- Re: subroutine stack and C machine model
- From: Richard Heathfield
- Re: subroutine stack and C machine model
- Prev by Date: Re: subroutine stack and C machine model
- Next by Date: conflicting types or implicit declaration or incompatible implicit declaration
- Previous by thread: Re: subroutine stack and C machine model
- Next by thread: Re: subroutine stack and C machine model
- Index(es):
Relevant Pages
|