From: "Mark E." To: djgpp-workers AT delorie DOT com Date: Mon, 7 May 2001 23:53:47 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: snprintf? Message-ID: <3AF7358B.19349.38937B@localhost> X-mailer: Pegasus Mail for Win32 (v3.12c) Reply-To: djgpp-workers AT delorie DOT com Hello, The last snprintf diff is at: http://www.delorie.com/djgpp/mail-archives/browse.cgi?p=djgpp-workers/2000/11/18/19:19:56 it sounds like it takes care of most of the objections raised: > * Correct texinfo, as directed by Eli. > > * Extended tests, as suggested by Eli. I'm not sure how to induce a > encoding error in printf() though. Formats like '%!' result in '!' as > output. I've renamed the test t-snprtf.c from snprintf.c, for debugging > with gdb. > > * snprintf() is now just a wrapper for vsnprintf(). > > * n == 0 handled properly now. The buffer pointer in FILE is set to NULL > in this case, to catch bogus buffer accesses. > > I've left the "buffer full" logic in _flsbuf(). It can be changed easily > enough.