undefined reference to `memset'

Jung-uk Kim jkim at niksun.com
Thu Mar 24 15:26:51 PST 2005


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 ---


More information about the freebsd-amd64 mailing list