diff options
Diffstat (limited to 'src/blob.h')
-rw-r--r-- | src/blob.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -31,6 +31,7 @@ typedef struct blob { #define BLOB_STRLEN(str) (blob_t){(str), strlen(str)} #define BLOB_STR_INIT(str) {(str), sizeof(str)-1} #define BLOB_STR(str) (blob_t) BLOB_STR_INIT(str) +#define BLOB_CHAR_ARRAY(a) (blob_t){(a), strnlen(a, sizeof(a))} #define BLOB_NULL (blob_t){NULL, 0} static inline int blob_is_null(blob_t b) |