This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: snprintf warnings
> Date: Mon, 15 Nov 2004 19:36:45 -0500
> From: Andrew Cagney <cagney@gnu.org>
> Cc: gdb@sources.redhat.com
>
> include/libiberty.h, for instance:
>
> > #if !HAVE_DECL_ASPRINTF
> > /* Like sprintf but provides a pointer to malloc'd storage, which must
> > be freed by the caller. */
> >
> > extern int asprintf PARAMS ((char **, const char *, ...)) ATTRIBUTE_PRINTF_2;
> > #endif
So you are saying that we should add some configury stuff to produce
HAVE_DECL_SNPRINTF, and then add a fragment similar to the above to
libiberty.h that specifies the prototype for snprintf, yes?