Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2005 18:26:46 -0500
From:      Jung-uk Kim <jkim@niksun.com>
To:        freebsd-amd64@freebsd.org
Subject:   Re: undefined reference to `memset'
Message-ID:  <200503241826.46663.jkim@niksun.com>
In-Reply-To: <1111702231.2655.6.camel@server.mcneil.com>
References:  <IDVJ3H01.CW0@hadar.amcc.com> <20050324214956.GA99087@dragon.NUXI.org> <1111702231.2655.6.camel@server.mcneil.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 ---



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503241826.46663.jkim>