]>
git.ipfire.org Git - thirdparty/bird.git/blob - lib/string.h
2 * BIRD Library -- String Functions
4 * (c) 1998 Martin Mares <mj@ucw.cz>
6 * Can be freely distributed and used under the terms of the GNU GPL.
9 #ifndef _BIRD_STRING_H_
10 #define _BIRD_STRING_H_
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
);
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
);
25 int patmatch(byte
*pat
, byte
*str
);