diff options
author | Martin Mares <mj@ucw.cz> | 1998-06-17 14:31:36 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-06-17 14:31:36 +0000 |
commit | ecacdfa434acf8af38ed8c1c0c8e71dab400b0f4 (patch) | |
tree | a12069269792c80ae9fc21987f8a754f1a7c54dc /lib/string.h | |
parent | 97d858c590998786d4d8a16b5c1f657800d74736 (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.h | 17 |
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 |