tz. at explicate.org
Mon Jul 26 23:51:34 UTC 2004
On Mon, Jul 26, 2004 at 03:51:23PM -0400, Olson, Arthur David (NIH/NCI) wrote:
> snprintf's behavior is to return the number of characters that would have
> been generated had the output buffer not been limited.
> That being true, I think the asctime.c below does what Paul intended. Does
> anyone see problems with using this in the next bundle?
The main difference I see is that Paul's can compile and work
on old systems which lack a snprintf(). His code *does* use
the system's snprintf() in just the way you describe, if the
HAVE_SNPRINTF preprocessor feature-test variable claims that
it is available.
More information about the tz