home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19527 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.6 KB

  1. Xref: sparky comp.lang.c:19527 comp.lang.c++:18926
  2. Path: sparky!uunet!wupost!waikato.ac.nz!comp.vuw.ac.nz!acheron.amigans.gen.nz!alien
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re:  Dynamic Mem Help
  5. Message-ID: <alien.02ff@acheron.amigans.gen.nz>
  6. From: alien@acheron.amigans.gen.nz (Ross Smith)
  7. Date: 10 Jan 93 12:12:06 GMT+12
  8. References: <93007.230524U10139@uicvm.uic.edu> <rfries.159@sceng.ub.com> <1993Jan8.205809.7661@klaava.Helsinki.FI> <rfries.164@sceng.ub.com>
  9. Distribution: world
  10. Organization: Muppet Labs
  11. Lines: 34
  12.  
  13. In article <rfries.164@sceng.ub.com> rfries@sceng.ub.com (Robert Fries) writes:
  14. >In article <1993Jan8.205809.7661@klaava.Helsinki.FI> wirzeniu@klaava.Helsinki.FI (Lars Wirzenius) writes:
  15. >
  16. >>rfries@sceng.ub.com (Robert Fries) writes:
  17. >>>You'll have to use an explicit cast of this value to
  18. >>>assign it to a variable of type 'char *', e.g.:
  19. >>>
  20. >>>      str = (char *)calloc(10, sizeof(char));
  21. >
  22. >>This is required in C++ only, not in ANSI C.
  23. >
  24. >>In ANSI C no casts are needed when assigning a "void *" to a pointer
  25. >>to any data type (not including pointers to functions), or the other
  26. >>way around.
  27. >
  28. >>--
  29. >>Lars.Wirzenius@helsinki.fi  (finger wirzeniu@klaava.helsinki.fi)
  30. >>   MS-DOS, you can't live with it, you can live without it.
  31. >
  32. >Oops, you're absolutely right.
  33.  
  34. About what? C or MS-DOS?
  35.  
  36. :-)
  37.  
  38. --
  39. ...... Ross Smith (Wanganui, NZ) ...... alien@acheron.amigans.gen.nz ......
  40.  
  41. "I blame you for the moonlit sky and the dream that died with the Eagle's flight
  42. I blame you for the moonlit nights when I wonder why are the seas still dry
  43. Don't blame me, sleeping satellite"                              (Tasmin Archer)
  44.  
  45. --
  46.  
  47.