Date: Sun, 19 Oct 1997 16:48:11 +0200 (IST) From: Eli Zaretskii To: Peter Palotas cc: Jonathan Foster , djgpp AT delorie DOT com Subject: Re: sprintf() string length? In-Reply-To: <3.0.16.19971016132047.34a756c4@hem1.passagen.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 16 Oct 1997, Peter Palotas wrote: > Does anyone know if this works, and how compatible it is? > Writing to a NULL pointer doesn't sound too good to me! Writing to "/dev/null" should be portable (to Unix). But it is expensive, so it is a good idea only if you need to do such trick a few times. Doing so in the innermost loop of a program would be a bad idea.