1*0Sstevel@tonic-gate /* $Id: bsd-snprintf.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */ 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate #ifndef _BSD_SNPRINTF_H 4*0Sstevel@tonic-gate #define _BSD_SNPRINTF_H 5*0Sstevel@tonic-gate 6*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 7*0Sstevel@tonic-gate 8*0Sstevel@tonic-gate #ifdef __cplusplus 9*0Sstevel@tonic-gate extern "C" { 10*0Sstevel@tonic-gate #endif 11*0Sstevel@tonic-gate 12*0Sstevel@tonic-gate #include "config.h" 13*0Sstevel@tonic-gate 14*0Sstevel@tonic-gate #include <sys/types.h> /* For size_t */ 15*0Sstevel@tonic-gate 16*0Sstevel@tonic-gate #ifndef HAVE_SNPRINTF 17*0Sstevel@tonic-gate int snprintf(char *str, size_t count, const char *fmt, ...); 18*0Sstevel@tonic-gate #endif /* !HAVE_SNPRINTF */ 19*0Sstevel@tonic-gate 20*0Sstevel@tonic-gate #ifndef HAVE_VSNPRINTF 21*0Sstevel@tonic-gate int vsnprintf(char *str, size_t count, const char *fmt, va_list args); 22*0Sstevel@tonic-gate #endif /* !HAVE_SNPRINTF */ 23*0Sstevel@tonic-gate 24*0Sstevel@tonic-gate #ifdef __cplusplus 25*0Sstevel@tonic-gate } 26*0Sstevel@tonic-gate #endif 27*0Sstevel@tonic-gate 28*0Sstevel@tonic-gate #endif /* _BSD_SNPRINTF_H */ 29