Re: newbie question

From: Richard Heathfield (dontmail_at_address.co.uk.invalid)
Date: 03/23/04


Date: Tue, 23 Mar 2004 20:50:37 +0000 (UTC)

Irrwahn Grausewitz wrote:

<snip>

> The comp.lang.c approved idiom for calling malloc goes like this:
>
> *p = malloc( allocsize * sizeof *p );

No. Care to try again? :-)

-- 
Richard Heathfield : binary@eton.powernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton


Relevant Pages

  • Re: G4 laptop, Tiger OS
    ... What about preventing disk corruption. ... > step-daughters step mother may have purchased the care when she got the ... There are a number of books on OS X. ...
    (comp.sys.mac.portables)
  • Re: integer to characters
    ... Alan Kelon wrote: ... C FAQ: http://www.eskimo.com/~scs/C-faq/top.html K&R answers, C books, etc: http://users.powernet.co.uk/eton ...
    (alt.comp.lang.learn.c-cpp)
  • Re: DOS, how long?
    ... Programmer Dude wrote: ... C FAQ: http://www.eskimo.com/~scs/C-faq/top.html ... K&R answers, C books, etc: http://users.powernet.co.uk/eton ...
    (comp.programming)
  • Re: C dangerous?
    ... That wouldn't make them any safer. ... C FAQ: http://www.eskimo.com/~scs/C-faq/top.html ... K&R answers, C books, etc: http://users.powernet.co.uk/eton ...
    (comp.lang.c)
  • Re: C dangerous?
    ... That wouldn't make them any safer. ... C FAQ: http://www.eskimo.com/~scs/C-faq/top.html ... K&R answers, C books, etc: http://users.powernet.co.uk/eton ...
    (comp.lang.c)