Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: calloc() Keywords: calloc null zero Message-ID: <10440@smoke.BRL.MIL> Date: 23 Jun 89 14:34:54 GMT References: <14650@watdragon.waterloo.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn) Distribution: na Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 7 In article <14650@watdragon.waterloo.edu> dtsteen@dahlia.waterloo.edu writes: > block = calloc(0,1); >What does the ANSI spec (which I don't have) have to say about this? "If the size of the space requested is zero, the behavior is implementation-defined; the value returned shall be either a null pointer or a unique pointer."