Date: Sat, 04 Nov 2000 08:50:36 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: "Alain Magloire" Message-Id: <2593-Sat04Nov2000085036+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.5h CC: djgpp-workers AT delorie DOT com In-reply-to: <200011032106.QAA17762@qnx.com> (alain@qnx.com) Subject: Re: snprintf References: <200011032106 DOT QAA17762 AT qnx DOT com> 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 > Date: Fri, 3 Nov 2000 16:06:21 -0500 (EST) > From: "Alain Magloire" > > Yes, I forgot about that. It was change somewhat to comply > to C99 snprintf/vsnprintf semantics, I've sent the docs and patches > to Eli, but that was along time ago. It was suppose to be > in V2.03 ? or something. No, it was not meant to be part of v2.03, since it came late, and needed some non-trivial work. > The good thing is that it reused > DJGPP stdio guts but some small cosmetic changes was supposed > to be done on _doprnt() or __putc() to make it aware of the > size of the buffer, after that writing v/snprintf() was trivial, > a few lines of code. > > Sorry, I could not find trace of the patches in my $HOME. It's on my todo to get that done, if no one else does it before. Your patches (and the ensuing discussions) are all available via searching the DJGPP mail archives, http://www.delorie.com/djgpp/mail-archives/. > In any case the stdio guts (_doprnt() and friends) should > pay attention not to overflow its buffer. Once that is > done vsnpritf is trivial and maybe other things can be added. Yes, this small issue was the reason why the function is not yet part of the CVS.