first shot at "addrequest" support
This commit is contained in:
7
bstr.h
7
bstr.h
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user