diff options
author | Damien Miller <djm@mindrot.org> | 1999-11-26 12:21:24 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-11-26 12:21:24 +1100 |
commit | 42b81ffe7d1e98b362696076edbc56a66368053e (patch) | |
tree | 0c11756e8b9def63760aa59e6d2a195fcc380196 /bsd-snprintf.h | |
parent | bf3f6ef19b8d43b09598807cc30de7e66be37563 (diff) |
- Add definition for __P()
- Added [v]snprintf() replacement for systems that lack it
Diffstat (limited to 'bsd-snprintf.h')
-rw-r--r-- | bsd-snprintf.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bsd-snprintf.h b/bsd-snprintf.h new file mode 100644 index 00000000..d4f83aac --- /dev/null +++ b/bsd-snprintf.h @@ -0,0 +1,17 @@ +#ifndef _BSD_SNPRINTF_H +#define _BSD_SNPRINTF_H + +#include "config.h" + +#include <sys/types.h> /* For size_t */ + +#ifndef HAVE_SNPRINTF +int snprintf(char *str, size_t n, char const *fmt, ...); +#endif /* !HAVE_SNPRINTF */ + +#ifndef HAVE_VSNPRINTF +int vsnprintf(char *str, size_t n, char *fmt, char *ap); +#endif /* !HAVE_SNPRINTF */ + + +#endif /* _BSD_SNPRINTF_H */ |