19 lines
465 B
C
19 lines
465 B
C
#ifndef _PORTABLE_SNPRINTF_H_
|
|
#define _PORTABLE_SNPRINTF_H_
|
|
|
|
#define PORTABLE_SNPRINTF_VERSION_MAJOR 1
|
|
#define PORTABLE_SNPRINTF_VERSION_MINOR 3
|
|
|
|
#ifdef HAVE_SNPRINTF
|
|
#include <stdio.h>
|
|
#else
|
|
extern int snprintf(char *, size_t, const char *, /*args*/ ...);
|
|
#endif
|
|
|
|
#if defined(HAVE_SNPRINTF) && defined(PREFER_PORTABLE_SNPRINTF)
|
|
extern int portable_snprintf(char *str, size_t str_m, const char *fmt, /*args*/ ...);
|
|
#define snprintf portable_snprintf
|
|
#endif
|
|
|
|
#endif
|