undefined reference to `memset'

Sean McNeil sean at mcneil.com
Thu Mar 24 15:47:58 PST 2005


On Thu, 2005-03-24 at 18:26 -0500, Jung-uk Kim wrote:
> 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? ;-)

Right :)

Same results, though.

Sean




More information about the freebsd-amd64 mailing list