From owner-freebsd-amd64@FreeBSD.ORG Thu Mar 24 23:26:50 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBB1B16A4CE for ; Thu, 24 Mar 2005 23:26:50 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7072B43D1D for ; Thu, 24 Mar 2005 23:26:50 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) by anuket.mj.niksun.com (8.13.1/8.12.11) with ESMTP id j2ONQmjj010408; Thu, 24 Mar 2005 18:26:50 -0500 (EST) (envelope-from jkim@niksun.com) From: Jung-uk Kim Organization: Niksun, Inc. To: freebsd-amd64@freebsd.org Date: Thu, 24 Mar 2005 18:26:46 -0500 User-Agent: KMail/1.6.2 References: <20050324214956.GA99087@dragon.NUXI.org> <1111702231.2655.6.camel@server.mcneil.com> In-Reply-To: <1111702231.2655.6.camel@server.mcneil.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="euc-kr" Content-Transfer-Encoding: 7bit Message-Id: <200503241826.46663.jkim@niksun.com> X-Virus-Scanned: ClamAV 0.83/782/Thu Mar 24 07:29:35 2005 on anuket.mj.niksun.com X-Virus-Status: Clean Subject: Re: undefined reference to `memset' X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2005 23:26:51 -0000 On Thursday 24 March 2005 05:10 pm, Sean McNeil wrote: --- >8 --- SNIP!!! --- >8 --- > void bug (void) > { > int buf[100] = { 0 }; > > memset (buf, sizeof(buf), 0); ^^^^^^^^^^^^^^ memset (buf, 0, sizeof(buf)); Right? ;-) Jung-uk Kim > printf ("%d\n", buf[0]); > } --- >8 --- SNIP!!! --- >8 ---