delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/19/10:52:33

Date: Sun, 19 Oct 1997 16:48:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Peter Palotas <blizzar AT hem1 DOT passagen DOT se>
cc: Jonathan Foster <jgf1 AT ukc DOT ac DOT uk>, djgpp AT delorie DOT com
Subject: Re: sprintf() string length?
In-Reply-To: <3.0.16.19971016132047.34a756c4@hem1.passagen.se>
Message-ID: <Pine.SUN.3.91.971019164742.27221G-100000@is>
MIME-Version: 1.0

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.

- Raw text -


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