Mail Archives: djgpp-workers/2002/05/25/04:44:28
Hello.
Andrew Cottrell wrote:
[snip]
> Please note that confstr.c as simple as I thought and I am wtill working on
> it as the compiler does not like the following line in the file:-
> out_len = snprintf(buf, len, "");
> GCC 3.1 complains about the third parameter.
[snip]
What complaint does it have? I suspect it's complaining that there's no format
string. Does it complain about this?
out_len = snprintf(buf, len, "%s", "");
It looks like this call is intended to truncate the buffer, to return to an
empty string.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -