[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] [ANNOUNCE:] leafnode-1.9.12
Cornelius Krasel wrote:
>
> Bruno Rohee wrote:
>
> > Second thought on the problem : why not having in miscutils.c
> >
> > #ifndef HAVE_SNPRINTF
> > int snprintf(char *str, size_t n, const char *fmt, ...)
> > {
> > int rval;
> > va_list ap;
> >
> > va_start(ap, fmt);
> > rval = sprintf(str, fmt, ap);
Ooops... Forgot the 'v' in vsprintf() here...
[...]
> Sure, that was what I was thinking of. It is actually already the same
> with strdup().
>
> I put the following into miscutil.c; please have a short look and check
> whether it is correct:
More correct that my quick untested code, the syslog() is nice too...
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list