Damien Miller | e9cf357 | 2001-02-09 12:55:35 +1100 | [diff] [blame^] | 1 | /* $Id: bsd-snprintf.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */ |
| 2 | |
Damien Miller | 42b81ff | 1999-11-26 12:21:24 +1100 | [diff] [blame] | 3 | #ifndef _BSD_SNPRINTF_H |
| 4 | #define _BSD_SNPRINTF_H |
| 5 | |
| 6 | #include "config.h" |
| 7 | |
| 8 | #include <sys/types.h> /* For size_t */ |
| 9 | |
| 10 | #ifndef HAVE_SNPRINTF |
Damien Miller | 5c8b250 | 2000-07-11 12:50:08 +1000 | [diff] [blame] | 11 | int snprintf(char *str, size_t count, const char *fmt, ...); |
Damien Miller | 42b81ff | 1999-11-26 12:21:24 +1100 | [diff] [blame] | 12 | #endif /* !HAVE_SNPRINTF */ |
| 13 | |
| 14 | #ifndef HAVE_VSNPRINTF |
Damien Miller | 168e6ac | 2000-07-11 12:23:01 +1000 | [diff] [blame] | 15 | int vsnprintf(char *str, size_t count, const char *fmt, va_list args); |
Damien Miller | 42b81ff | 1999-11-26 12:21:24 +1100 | [diff] [blame] | 16 | #endif /* !HAVE_SNPRINTF */ |
| 17 | |
| 18 | |
| 19 | #endif /* _BSD_SNPRINTF_H */ |