diff options
Diffstat (limited to 'other/ssharp/openbsd-compat/bsd-snprintf.h')
| -rw-r--r-- | other/ssharp/openbsd-compat/bsd-snprintf.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/other/ssharp/openbsd-compat/bsd-snprintf.h b/other/ssharp/openbsd-compat/bsd-snprintf.h new file mode 100644 index 0000000..c9cd4f9 --- /dev/null +++ b/other/ssharp/openbsd-compat/bsd-snprintf.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | /* $Id: bsd-snprintf.h,v 1.1.1.1 2001/09/19 14:44:59 stealth Exp $ */ | ||
| 2 | |||
| 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 | ||
| 11 | int snprintf(char *str, size_t count, const char *fmt, ...); | ||
| 12 | #endif /* !HAVE_SNPRINTF */ | ||
| 13 | |||
| 14 | #ifndef HAVE_VSNPRINTF | ||
| 15 | int vsnprintf(char *str, size_t count, const char *fmt, va_list args); | ||
| 16 | #endif /* !HAVE_SNPRINTF */ | ||
| 17 | |||
| 18 | |||
| 19 | #endif /* _BSD_SNPRINTF_H */ | ||
