delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/04/09:00:23

From: sachsen001 AT my-deja DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: implicite declaration warning?
Date: Fri, 04 Aug 2000 12:37:34 GMT
Organization: Deja.com - Before you buy.
Lines: 42
Message-ID: <8medee$kd5$1@nnrp1.deja.com>
NNTP-Posting-Host: 149.225.0.207
X-Article-Creation-Date: Fri Aug 04 12:37:34 2000 GMT
X-Http-User-Agent: Mozilla/4.51 [de] (Win98; I)
X-Http-Proxy: 1.0 x60.deja.com:80 (Squid/1.1.22) for client 149.225.0.207
X-MyDeja-Info: XMYDJUIDsachsen001
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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'

locatet in this function:
void searchN()
{
  int y=sum;
  if (!attX(n,y)) {
    count++;
    sp[n]=y;
    memmove(p[count].board,sp,sizeof sp);
    sp[n]=0;
    if (v()) output();
  }
}

the function v:
int v()
{
 .......
  return 0;
  ....
 else return 1;
}

Thanx



Sent via Deja.com http://www.deja.com/
Before you buy.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019