summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ssh/include/bsd-snprintf.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ssh/include/bsd-snprintf.h')
-rw-r--r--usr/src/cmd/ssh/include/bsd-snprintf.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/usr/src/cmd/ssh/include/bsd-snprintf.h b/usr/src/cmd/ssh/include/bsd-snprintf.h
new file mode 100644
index 0000000000..71691a01d3
--- /dev/null
+++ b/usr/src/cmd/ssh/include/bsd-snprintf.h
@@ -0,0 +1,28 @@
+/* $Id: bsd-snprintf.h,v 1.2 2001/02/09 01:55:36 djm Exp $ */
+
+#ifndef _BSD_SNPRINTF_H
+#define _BSD_SNPRINTF_H
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "config.h"
+
+#include <sys/types.h> /* For size_t */
+
+#ifndef HAVE_SNPRINTF
+int snprintf(char *str, size_t count, const char *fmt, ...);
+#endif /* !HAVE_SNPRINTF */
+
+#ifndef HAVE_VSNPRINTF
+int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
+#endif /* !HAVE_SNPRINTF */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _BSD_SNPRINTF_H */