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

Re: [leafnode-list] snprintf



Matthias Andree wrote:

> 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
>  */

The same or a very similar snprintf (copyrighted 1997, IIRC) can be
found in tin (I found it in 1.5.3), and it is apparently taken from
LPRng. The licensing there is somewhat confusing, since LPRng is
published under the GPL, however the snprintf.c in tin does not indicate
that. Therefore, it might be interesting to rip the snprintf.c
from the mutt source code instead or ask Patrick Powell for
clarification.

> 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. 

I agree, since HAVE_[V]SNPRINTF is set by ./configure anyway.

--Cornelius.

-- 
/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany   email: phak004@xxxxxxxxxxxxxxxxxxxxxx  SP4 */
/* "Science is the game we play with God to find out what His rules are."  */

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