[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] snprintf



krasel@xxxxxxxxxxxxxxxxxxxxxxxxxxxx (Cornelius Krasel) writes:

> I think I managed to hack together a version of snprintf() which could
> be used if no snprintf was present. It certainly does not have all features
> of the full snprintf but seems to be sufficient to use it in leafnode.

Hmmm... I have an snprintf.c here that is in unix-connect and has been
taken from the mutt distribution and that reads:

/*
 * Copyright Patrick Powell 1995
 * This code is based on code written by Patrick Powell (papowell@xxxxxxxxxx)
 * It may be used for any purpose as long as this notice remains intact
 * on all source code distributions
 */

It has undergone some updates after 1995 such as added floating point
support. I'm not currently sending it since you may already have mutt
source code on your machine. It does not matter if you rip snprintf.c
from mutt 1.0.1 or mutt 1.1.9, the snprintf.c files are identical.

That code works out if it needs to replaces either or both of vsnprintf
and snprintf, it seems to depend on HAVE_[V]SNPRINTF however. Should not
cause any problems though. 

Since it's in a stable mutt distribution, you might consider using that
instead rather than debugging your own work, you have better things to
do with your time. 

-- 
Matthias Andree

                Where do you think you're going today?

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list