summaryrefslogtreecommitdiff
path: root/snprintf.h
blob: eecce66484c5e53365119d5cdb4573e8a3fffa30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* $Id$ */

/* 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