1 /*
2  * snprintf.h -- interface for our fixup vsnprintf() etc. functions
3  */
4 
5 #ifndef SNPRINTF_H
6 #define SNPRINTF_H 1
7 
8 #ifdef __GNUC__
9 #ifndef __clang__
10 #pragma interface
11 #endif
12 #endif
13 
14 #include "config2.h"
15 #include <stdarg.h> /* ... */
16 #ifndef __cplusplus
17 #  define EXTERN_C extern
18 #else
19 #  define EXTERN_C extern "C"
20 #endif
21 
22 EXTERN_C slen_t fixup_vsnprintf(char *str, slen_t count, PTS_const char *fmt, va_list args);
23 EXTERN_C slen_t fixup_snprintf(char *str,slen_t count,PTS_const char *fmt,...);
24 EXTERN_C slen_t fixup_vasprintf(char **ptr, PTS_const char *format, va_list ap);
25 EXTERN_C slen_t fixup_asprintf(char **ptr, PTS_const char *format, ...);
26 EXTERN_C slen_t fixup_sprintf(char *ptr, PTS_const char *format, ...);
27 
28 #endif /* snprintf.h */
29