summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-snprintf.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-31 21:52:01 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-31 21:52:01 +0000
commit3c06f6a0b234822c7b2d6c63ef1aaf554af7167b (patch)
tree86e5fe626cb9cbade752baf2440badfa19976200 /openbsd-compat/bsd-snprintf.h
parentbf75776d415126a415ac92fb767c70dc67feba4f (diff)
- (bal) Reorder. Move all bsd-*, fake-*, next-*, and cygwin* stuff to
openbsd-compat/. And resolve all ./configure and Makefile.in issues assocated. Logic: * All OpenBSD functions should have the same filename as in the OpenBSD tree * All 'home brew' functions have bsd-* infront of them. * All 'not really implemented' functions have fake-* infront of them.
Diffstat (limited to 'openbsd-compat/bsd-snprintf.h')
-rw-r--r--openbsd-compat/bsd-snprintf.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/openbsd-compat/bsd-snprintf.h b/openbsd-compat/bsd-snprintf.h
new file mode 100644
index 000000000..ed7a21c97
--- /dev/null
+++ b/openbsd-compat/bsd-snprintf.h
@@ -0,0 +1,17 @@
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
9int snprintf(char *str, size_t count, const char *fmt, ...);
10#endif /* !HAVE_SNPRINTF */
11
12#ifndef HAVE_VSNPRINTF
13int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
14#endif /* !HAVE_SNPRINTF */
15
16
17#endif /* _BSD_SNPRINTF_H */