From ecacdfa434acf8af38ed8c1c0c8e71dab400b0f4 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 17 Jun 1998 14:31:36 +0000 Subject: 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) --- lib/string.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/string.h (limited to 'lib/string.h') diff --git a/lib/string.h b/lib/string.h new file mode 100644 index 0000000..9f72cb7 --- /dev/null +++ b/lib/string.h @@ -0,0 +1,17 @@ +/* + * BIRD Library -- String Functions + * + * (c) 1998 Martin Mares + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +#ifndef _BIRD_STRING_H_ +#define _BIRD_STRING_H_ + +#include + +int bsprintf(char *str, const char *fmt, ...); +int bvsprintf(char *str, const char *fmt, va_list args); + +#endif -- cgit v1.2.3