From: dontmailme AT iname DOT com (Steamer) Newsgroups: comp.os.msdos.djgpp Subject: Re: implicite declaration warning? Date: Fri, 04 Aug 2000 13:14:03 GMT Organization: always disorganized Lines: 27 Message-ID: <398ac18d.19089218@news.freeserve.net> References: <8medee$kd5$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: modem-55.cleaner-wrasse.dialup.pol.co.uk X-Trace: news7.svr.pol.co.uk 965394843 13437 62.136.246.55 (4 Aug 2000 13:14:03 GMT) NNTP-Posting-Date: 4 Aug 2000 13:14:03 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Free Agent 1.11/32.235 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com sachsen001 AT my-deja DOT com wrote: > I'm new to c and I would like to know how to avoid the warnigs I get > when I > compile > this part of code with all warnings turned on. > The programm itself works fine. > It's important that no warnings are reportet because the grader > programm of > various > coding contests don't accept programms that produce warnings. > > the warnings are: > implicite declaration of function 'memmove' > implicite declaration of function 'v' You need to learn about prototypes. The prototype for `memmove' is in string.h, so put #include at the beginning of the file. The function `v' is your own, so put a prototype for it at the beginning of the file: int v(void); (Or just put the function `v' before the function that uses it.)