T.R | Title | User | Personal Name | Date | Lines |
---|
2391.1 | Your types don't match | TOOK::MINTZ | Erik Mintz, DECmcc Development, dtn 226-5033 | Fri Feb 21 1992 10:51 | 7 |
| The warning means that there is a functional prototype declared for
the routine you are calling, and the arguments you are passing in do
not match the type of the arguments in the prototype.
Without knowing what you are calling, it is hard to provide more information.
-- Erik
|
2391.2 | Whoops... | TAEC::SILVA | Carl Silva - Telecom Eng - DTN 828-5339 | Fri Feb 21 1992 10:58 | 5 |
| I'm sorry, I get these every time I call sprintf such as :
sprintf (&out_buf[0], "x = %s", &field_buf[0]);
Carl
|
2391.3 | style vs structure... | TOOK::MINTZ | Erik Mintz, DECmcc Development, dtn 226-5033 | Fri Feb 21 1992 11:07 | 12 |
| CMA has defined a functional prototype for sprintf, in cma_stdio.h:
cma_sprintf _CMA_PROTOTYPE_ ((
char *s,
char *format,
...));
I would suggest trying out_buf rather than &out_buf[0], and see if that helps.
-- Erik
|
2391.4 | Yah but... | TAEC::SILVA | Carl Silva - Telecom Eng - DTN 828-5339 | Fri Feb 21 1992 12:08 | 12 |
| RE: .3,
Thanks, that worked for some. But I still get it if I use the last
field to be something like:
sprintf (out_buf, "%s", field_buf);
Where char out_buf[10] and char field_buf[5];
Thanks for the help!
Carl
|