/* $Id: snprintf.h,v 1.3 2003/08/03 14:36:09 abo Exp $ */
/* Some platforms don't have one or both of these functions.
* MSVC has _snprintf and _vsnprintf functions instead.
*
* XXX: put this into a "common.h" for all platform conditionals and split
* snprintf.c into two seperate autoconf replacement functions.
*/
#ifndef HAVE_SNPRINTF
# ifdef HAVE__SNPRINTF
# define snprintf _snprintf
# else
int snprintf (char *str, size_t count, const char *fmt, ...);
# endif
#endif
#ifndef HAVE_VSNPRINTF
# ifdef HAVE__VSNPRINTF
# define vsnprintf _vsnprintf
# else
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
# endif
#endif
syntax highlighted by Code2HTML, v. 0.9.1