Path: 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 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