Conrad T. Pino wrote:

>Windows defines:
>
>File STDIO.H:
>342     _CRTIMP int __cdecl _snprintf(char *, size_t, const char *, ...);
>352     _CRTIMP int __cdecl _vsnprintf(char *, size_t, const char *, va_list);
>
>I'm not sure using then is worth the bother.
>  
>

Neither am I.  In general, I opt to use the system function if I don't
already know it has bugs.  GNULIB replacement functions tend to err on
the side of portability rather than efficiency.

It looks like vasnprintf.c, at least, already has support for this:

# if HAVE_DECL__SNPRINTF
   /* Windows.  */
#  define SNPRINTF _snprintf
# else
   /* Unix.  */
#  define SNPRINTF snprintf
# endif


Regards,

Derek

-- 
Derek R. Price
CVS Solutions Architect
Ximbiot <http://ximbiot.com>
v: +1 717.579.6168
f: +1 717.234.3125
<mailto:[EMAIL PROTECTED]>




_______________________________________________
Bug-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/bug-cvs

Reply via email to