]> git.ipfire.org Git - thirdparty/bird.git/blob - lib/string.h
Finishes add-path.
[thirdparty/bird.git] / lib / string.h
1 /*
2 * BIRD Library -- String Functions
3 *
4 * (c) 1998 Martin Mares <mj@ucw.cz>
5 *
6 * Can be freely distributed and used under the terms of the GNU GPL.
7 */
8
9 #ifndef _BIRD_STRING_H_
10 #define _BIRD_STRING_H_
11
12 #include <stdarg.h>
13 #include <string.h>
14 #include <strings.h>
15
16 int bsprintf(char *str, const char *fmt, ...);
17 int bvsprintf(char *str, const char *fmt, va_list args);
18 int bsnprintf(char *str, int size, const char *fmt, ...);
19 int bvsnprintf(char *str, int size, const char *fmt, va_list args);
20
21 int buffer_vprint(buffer *buf, const char *fmt, va_list args);
22 int buffer_print(buffer *buf, const char *fmt, ...);
23 void buffer_puts(buffer *buf, const char *str);
24
25 int patmatch(byte *pat, byte *str);
26
27 #endif