X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Date: Wed, 7 Jan 2004 11:47:41 +0200 (EET) From: Esa A E Peuha Sender: peuha AT sirppi DOT helsinki DOT fi To: djgpp-workers AT delorie DOT com Subject: Re: Use of FILE in sprintf/sscanf In-Reply-To: <3FF9F187.5010201@phekda.gotadsl.co.uk> Message-ID: References: <3FF9F187 DOT 5010201 AT phekda DOT gotadsl DOT co DOT uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 5 Jan 2004, Richard Dawe wrote: > What happens if _doprnt returns a negative number? That's not possible, since there can be no output errors writing to a string, and we can't have encoding errors yet. But we might as well prepare for the possibility of encoding errors, and in that case the offset of the null character must be gotten from the FILE thing... > Other than that, it looks fine to me. I'd prefer a slightly less cryptic > name than "sopen", though - "stropen", "strbufopen"? Yeah, stropen sounds good. -- Esa Peuha student of mathematics at the University of Helsinki http://www.helsinki.fi/~peuha/