home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / programm / 3852 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.0 KB

  1. Path: sparky!uunet!mcsun!fuug!demos!kiae!glas!demos!druid.uucp!darcy
  2. From: darcy@druid.uucp
  3. Newsgroups: comp.unix.programmer
  4. Date: 18 Jul 92 04:24 MDT
  5. Subject: Re: Duplication of malloc() definit
  6. Sender: Notesfile to Usenet Gateway <notes@glas.apc.org>
  7. Message-ID: <1992Jul18.002407.20753@druid.uuc>
  8. References: <9219708.3101@mulga.cs.mu.oz.au>
  9. Nf-ID: #R:9219708.3101@mulga.cs.mu.oz.au:-2146214427:1992Jul18.002407.20753@druid.uuc:-1486557757:001:554
  10. Nf-From: druid.uucp!darcy    Jul 18 04:24:00 1992
  11. Lines: 15
  12.  
  13.  
  14. jmp@moscom.UUCP (Joe Palumbos) writes:
  15. >Can someone tell me why the memmory allocation routines are
  16. >defined in both malloc.h and in stdlib.h?  (i.e.: malloc(),
  17.  
  18. Because some older compilers used malloc.h and so for compatibility with
  19. programs which use it malloc.h is included.  ANSI puts these functions
  20. in stdlib.h and this is the right header to use.
  21.  
  22. -- 
  23. D'Arcy J.M. Cain (darcy@druid)     |
  24. D'Arcy Cain Consulting             |   There's no government
  25. Toronto, Ontario, Canada           |   like no government!
  26. +1 416 424 2871          DoD#0082  |
  27.  
  28.