Smrender
 All Data Structures Files Functions Variables Macros
bstring.h
1 /* Copyright 2011 Bernhard R. Fischer, 2048R/5C5FFD47 <bf@abenteuerland.at>
2  *
3  * This file is part of libhpxml.
4  *
5  * Libhpxml is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, version 3 of the License.
8  *
9  * Libhpxml is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with libhpxml. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef BSTRING_H
19 #define BSTRING_H
20 
21 
22 typedef struct bstrings
23 {
24  short len;
25  char *buf;
26 } bstrings_t;
27 
28 typedef struct bstring
29 {
30  int len;
31  char *buf;
32 } bstring_t;
33 
34 typedef struct bstringl
35 {
36  long len;
37  char *buf;
38 } bstringl_t;
39 
40 int bs_advance(bstring_t *);
41 int bs_advancel(bstringl_t *);
42 int bs_advance2(bstring_t *);
43 int bs_nadvance(bstring_t *, int);
44 int bs_ncmp(bstring_t b, const char *s, int n);
45 int bs_cmp(bstring_t b, const char *s);
46 long bs_tol(bstring_t b);
47 double bs_tod(bstring_t b);
48 
49 #endif
50 
Definition: bstring.h:34
Definition: bstring.h:22
Definition: bstring.h:28