]> pd.if.org Git - nbds/blob - map/nstring.h
generic interface for map-like data structures
[nbds] / map / nstring.h
1 #ifndef NSTRING_H
2 #define NSTRING_H
3
4 typedef struct nstring {
5     uint32_t len;
6     char data[];
7 } nstring_t;
8
9 nstring_t * ns_alloc (const void *data, uint32_t len);
10 int ns_cmp_raw (nstring_t *ns, const void *data, uint32_t len);
11
12 #endif//NSTRING_H