Damien Miller | 3174125 | 2003-05-19 00:13:38 +1000 | [diff] [blame] | 1 | /* $Id: bsd-snprintf.h,v 1.3 2003/05/18 14:13:39 djm Exp $ */ |
Damien Miller | e9cf357 | 2001-02-09 12:55:35 +1100 | [diff] [blame] | 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 | 3174125 | 2003-05-19 00:13:38 +1000 | [diff] [blame] | 11 | int snprintf(char *, size_t, const char *, ...); |
Damien Miller | 42b81ff | 1999-11-26 12:21:24 +1100 | [diff] [blame] | 12 | #endif /* !HAVE_SNPRINTF */ |
| 13 | |
| 14 | #ifndef HAVE_VSNPRINTF |
Damien Miller | 3174125 | 2003-05-19 00:13:38 +1000 | [diff] [blame] | 15 | int vsnprintf(char *, size_t, const char *, va_list); |
Damien Miller | 42b81ff | 1999-11-26 12:21:24 +1100 | [diff] [blame] | 16 | #endif /* !HAVE_SNPRINTF */ |
| 17 | |
| 18 | |
| 19 | #endif /* _BSD_SNPRINTF_H */ |