Article View: comp.std.c
Article #3097Re: What does malloc(0) return?
From: Alan J Rosenthal
Date: Sun, 02 Jun 1991 04:00
Date: Sun, 02 Jun 1991 04:00
10 lines
840 bytes
840 bytes
bhoughto@hopi.intel.com (Blair P. Houghton) writes: >But, the pointer, if it is returned, points to an address which is correctly >aligned for _any_ object. Whether this has any use I do not know. It's presumably useful to be able to assign it to some pointer variable and be able to test for equality. If the pointer wasn't necessarily suitably aligned, then two different ones might compare equal after being converted, say, to pointers to struct blop. ajr
Technical Details
Message-ID:
<1991Jun2.000039.13628@jarvis.csri.toronto.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!dgp.toronto.edu!flapsReferences:
<11614@ncar.ucar.edu> <16317@smoke.brl.mil> <4538@inews.intel.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!dgp.toronto.edu!flaps Newsgroups: comp.std.c From: flaps@dgp.toronto.edu (Alan J Rosenthal) Subject: Re: What does malloc(0) return? Message-ID: <1991Jun2.000039.13628@jarvis.csri.toronto.edu> References: <11614@ncar.ucar.edu> <16317@smoke.brl.mil> <4538@inews.intel.com> Date: 2 Jun 91 04:00:39 GMT Lines: 10