Re: Malloc code




"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

.



Relevant Pages


Loading