Mail Archives: djgpp/2002/02/24/20:15:14
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 -