Re: Malloc code
- From: "David Webber" <dave@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 31 Dec 2007 11:31:32 -0000
"Robby" <Robby@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:B363452A-F9C1-46F6-8D4F-2CFE5A951084@xxxxxxxxxxxxxxxx
Hello to both Davids! Thankyou for replying!
...
and what the hell is the 176 doing there!
I did wonder, but I am unused to systems with so little memory and so I didn't question it...
it should be:
pMCB1 = malloc(11*(sizeof(struct MCB)));
!!!!!!!!!!and it works!
That's it folks, I need a vacation!
C requires a vigilant mind
It does indeed, and a well-structured program makes vigilance *much* easier!
Thankyou very much guys for your support.
Glad it's working - happy new year.
Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
.
- References:
- Malloc code
- From: Robby
- RE: Malloc code
- From: Robby
- Re: Malloc code
- From: David Wilkinson
- Re: Malloc code
- From: Robby
- Malloc code
- Prev by Date: Re: Malloc code
- Next by Date: Re: Double-Checked Locking pattern issue
- Previous by thread: Re: Malloc code
- Next by thread: Re: Malloc code
- Index(es):
Relevant Pages
|
Loading