snprintf warnings

Eli Zaretskii eliz@gnu.org
Tue Nov 16 06:56:00 GMT 2004


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



More information about the Gdb mailing list