www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/01/07/14:10:32

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 <peuha AT cc DOT helsinki DOT fi>
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: <Pine.OSF.4.58.0401071130380.21799@sirppi.helsinki.fi>
References: <Pine DOT OSF DOT 4 DOT 58 DOT 0401051334160 DOT 4628 AT sirppi DOT helsinki DOT fi>
<3FF9F187 DOT 5010201 AT phekda DOT gotadsl DOT co DOT uk>
MIME-Version: 1.0
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

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/

- Raw text -


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