first shot at "addrequest" support

This commit is contained in:
leitner
2007-06-28 22:17:33 +00:00
parent fefbe77ba0
commit 35f2b3b745
68 changed files with 897 additions and 339 deletions

7
bstr.h
View File

@@ -1,11 +1,12 @@
#include <stddef.h>
int bstr_diff(const char* a,const char* b);
#define bstr_equal(s,t) (!bstr_diff((s),(t)))
int bstr_diff2(const char* a,const char* b,unsigned int blen);
int bstr_diff2(const char* a,const char* b,size_t blen);
#define bstr_equal2(s,t,l) (!bstr_diff2((s),(t),(l)))
int bstrlen(const char* a);
int bstrstart(const char* a); /* offset of first byte of bstring */
size_t bstrlen(const char* a);
size_t bstrstart(const char* a); /* offset of first byte of bstring */
const char* bstrfirst(const char* a); /* pointer to first byte of bstring */