Statistics
| Branch: | Revision:

iof-bird-daemon / lib / string.h @ 5e173e9f

History | View | Annotate | Download (720 Bytes)

1 ecacdfa4 Martin Mares
/*
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 221135d6 Martin Mares
#include <string.h>
14 094d2bdb Ondrej Zajicek
#include <strings.h>
15 ecacdfa4 Martin Mares
16
int bsprintf(char *str, const char *fmt, ...);
17
int bvsprintf(char *str, const char *fmt, va_list args);
18 53a416d3 Martin Mares
int bsnprintf(char *str, int size, const char *fmt, ...);
19
int bvsnprintf(char *str, int size, const char *fmt, va_list args);
20 ecacdfa4 Martin Mares
21 0e175f9f Ondrej Zajicek
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 e422ca0f Ondrej Zajicek (work)
int patmatch(const byte *pat, const byte *str);
26 dee929d8 Martin Mares
27 ecacdfa4 Martin Mares
#endif