[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RE : [f-cpu] Snapshot_jws update



it means the prototype of memcpy is not defined anywhere, so it warns you
about because it can be sure about what the function must return and what
its argument types are really.

So you'd better to EXPLICIT its prototype, just by including the file where
it is defined or define it by yourself :

extern void *memcpy (const void *,void *);
can be :
void *memcpy (const void *,void *);
void memcpy (const void *,void *);
int memcpy (const void *,void *);
void memcpy (void *,void *);

the only important thing is the two arguments must be pointers of any type
(void *).

----- Original Message -----
From: "jaap stolk" <jwstolk@yahoo.com>
To: <f-cpu@seul.org>
Sent: Sunday, July 28, 2002 2:01 PM
Subject: Re: RE : [f-cpu] Snapshot_jws update


> hi,
>
> --- GerTom <gertom_fcpu@yahoo.fr> wrote:
> > Just add getkey.c file in /toplevel
> > And the updated fcpusim_view.c
> >
> > Test and give feedback!
>
> it works great!, however
> when i compile with "-w -wall" i get this warning:
>
> getkey.c: In function 'kbhit':
> getkey.c:105: implicit declaration of function
> 'memcpy'
>
> dous anybody know wat this means and
> how to stop it ?
>
> jaap.
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> *************************************************************
> To unsubscribe, send an e-mail to majordomo@seul.org with
> unsubscribe f-cpu       in the body. http://f-cpu.seul.org/

*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/