Damien Miller | 42b81ff | 1999-11-26 12:21:24 +1100 | [diff] [blame] | 1 | #ifndef _BSD_SNPRINTF_H |
| 2 | #define _BSD_SNPRINTF_H |
| 3 | |
| 4 | #include "config.h" |
| 5 | |
| 6 | #include <sys/types.h> /* For size_t */ |
| 7 | |
| 8 | #ifndef HAVE_SNPRINTF |
Damien Miller | 5c8b250 | 2000-07-11 12:50:08 +1000 | [diff] [blame] | 9 | int snprintf(char *str, size_t count, const char *fmt, ...); |
Damien Miller | 42b81ff | 1999-11-26 12:21:24 +1100 | [diff] [blame] | 10 | #endif /* !HAVE_SNPRINTF */ |
| 11 | |
| 12 | #ifndef HAVE_VSNPRINTF |
Damien Miller | 168e6ac | 2000-07-11 12:23:01 +1000 | [diff] [blame] | 13 | 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] | 14 | #endif /* !HAVE_SNPRINTF */ |
| 15 | |
| 16 | |
| 17 | #endif /* _BSD_SNPRINTF_H */ |