www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/24/20:15:14

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Lines: 31
X-Admin: news AT aol DOT com
From: captainpita AT aol DOT com (Captainpita)
Newsgroups: comp.os.msdos.djgpp
Date: 25 Feb 2002 00:59:50 GMT
Organization: AOL http://www.aol.com
Subject: incorrect args to function
Message-ID: <20020224195950.21040.00000591@mb-fi.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello,

   I have the following messages in the output log when I compile my program,

DEMO.c: In function `comport_xmit':
DEMO.c:123: too few arguments to function `r232xmit'
DEMO.c:123: void value not ignored as it ought to be

   The name of the "C" program is "DEMO.c" that has the function "comport_xmit"
(defined within "DEMO.c") that calls a the function  "r232xmit" that comes from
a library. The function r232xmit has 3 (count'em three) arguments to it, I am
passing 3 arguments to the function, so why do I get these messages?

Here is how r232xmit is called


return_code=r232xmit(*com_port,*output_buffer,buff_len);

Here is how r232xmit is defined

int r232xmit(card,address,length)
             char card[];
             char  *address;
             int   length;
{ /* start of the r232xmit function */
int x;


   So what am I missing here?  Any ideas out there?


- Raw text -


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