summaryrefslogtreecommitdiff
path: root/lib/string.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-06-17 14:31:36 +0000
committerMartin Mares <mj@ucw.cz>1998-06-17 14:31:36 +0000
commitecacdfa434acf8af38ed8c1c0c8e71dab400b0f4 (patch)
treea12069269792c80ae9fc21987f8a754f1a7c54dc /lib/string.h
parent97d858c590998786d4d8a16b5c1f657800d74736 (diff)
Added local version of sprintf (bsprintf and bvsprintf) offering few new
format strings: %I IP address %#I IP address in hexadecimal %1I IP address padded to full length %m strerror(errno)
Diffstat (limited to 'lib/string.h')
-rw-r--r--lib/string.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/string.h b/lib/string.h
new file mode 100644
index 00000000..9f72cb79
--- /dev/null
+++ b/lib/string.h
@@ -0,0 +1,17 @@
+/*
+ * BIRD Library -- String Functions
+ *
+ * (c) 1998 Martin Mares <mj@ucw.cz>
+ *
+ * Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+#ifndef _BIRD_STRING_H_
+#define _BIRD_STRING_H_
+
+#include <stdarg.h>
+
+int bsprintf(char *str, const char *fmt, ...);
+int bvsprintf(char *str, const char *fmt, va_list args);
+
+#endif