From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hareesh Nagarajan Subject: Re: malloc with size 0 Date: Thu, 22 Dec 2005 11:51:20 +0530 Message-ID: <7728232c0512212221y368e782br7fe52d2caee76231@mail.gmail.com> References: <1f5f62170512212043w17e1c8e7v3781e0dc72845efc@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-Reply-To: <1f5f62170512212043w17e1c8e7v3781e0dc72845efc@mail.gmail.com> Content-Disposition: inline Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: Suma C , linux-c-programming@vger.kernel.org On 12/22/05, Suma C wrote: > When a 0 is passed to malloc, I get a valid pointer instead of a NULL > .What does this mean? A search on Google would have given you this thread: http://www.theone.ru/lists/comp.lang.c/msg00504.html hth, ./hareesh