www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/05/25/04:44:28

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3CEF4E7B.17584050@phekda.freeserve.co.uk>
Date: Sat, 25 May 2002 09:42:35 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: refresh++
References: <10205241453 DOT AA19974 AT clio DOT rice DOT edu> <002901c20392$d9b3c120$0102a8c0 AT acceleron>
Reply-To: djgpp-workers AT delorie DOT com

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 -


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