home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / c / 13663 < prev    next >
Encoding:
Text File  |  1992-09-14  |  665 b   |  18 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!uunet.ca!wildcan!sq!chance!john
  3. From: john@chance.gts.org (John R MacMillan)
  4. Subject: Re: typedef and memory allocation
  5. Message-ID: <1992Sep14.115250.5475@chance.gts.org>
  6. Organization: Reverse - esreveR :noitazinagrO
  7. References: <3687@amethyst.math.arizona.edu> <11SEP199202314312@envmsa.eas.asu.edu>
  8. Distribution: usa
  9. Date: Mon, 14 Sep 1992 11:52:50 GMT
  10. Lines: 6
  11.  
  12. |...  The
  13. |call to calloc is probably the way to go.
  14.  
  15. One caution about this: if you were using calloc() to try to ensure
  16. the doubles were all initially 0.0 you're making a non-portable
  17. assumption.  It's better to explicitly assign 0.0 to all the elements.
  18.