Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2005 14:00:51 +0100
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Max Laier <max@love2party.net>, freebsd-arch@FreeBSD.org
Subject:   Re: printf behaviour with illegal or malformed format string 
Message-ID:  <12349.1134478851@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 13 Dec 2005 23:41:34 %2B1100." <20051213230723.T3248@epsplex.bde.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20051213230723.T3248@epsplex.bde.org>, Bruce Evans writes:

>Now I think they should be very rarely needed and more rarely used.
>Using them mainly gives unportable code that breaks especially badly
>on systems which don't support extensions.

Portability is good, but it shouldn't get in the way of improving
our programs.

>I think these belong in specialized applications or libraries.  %T is
>already handled better by strftime/gmtime/localtime.

There's no handling for fractional seconds there.

>I mean aborting instead of returning NULL for failing malloc()s breaks
>defined behaviour.

Right, that's deliberate.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12349.1134478851>