From owner-freebsd-questions@FreeBSD.ORG Mon Oct 6 06:20:41 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F00916A4B3 for ; Mon, 6 Oct 2003 06:20:41 -0700 (PDT) Received: from ns2.foolishgames.net (ns2.foolishgames.net [216.93.162.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 641B943FB1 for ; Mon, 6 Oct 2003 06:20:40 -0700 (PDT) (envelope-from luke@foolishgames.com) Received: from foolishgames.com (adsl-64-109-110-183.dsl.gdrpmi.ameritech.net [64.109.110.183]) (authenticated bits=0)h96DKdQo004460; Mon, 6 Oct 2003 06:20:39 -0700 (PDT) (envelope-from luke@foolishgames.com) Date: Mon, 6 Oct 2003 09:20:33 -0400 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: James Jacobsen From: Lucas Holt In-Reply-To: <20031006053813.GE22536@res241015.resnet.wsu.edu> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) cc: freebsd-questions@freebsd.org Subject: Re: malloc() behavior (was: Pointer please) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Oct 2003 13:20:41 -0000 man calloc: The calloc() function allocates space for number objects, each size bytes in length. The result is identical to calling malloc() with an argument of ``number * size'', with the exception that the allocated memory is explicitly initialized to zero bytes. Lucas Holt Luke@FoolishGames.com ________________________________________________________ FoolishGames.com (Jewel Fan Site) JustJournal.com (Free blogging) "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein (1879-1955)