diff options
Diffstat (limited to 'blob.h')
-rw-r--r-- | blob.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -31,7 +31,7 @@ extern const blob_t BLOB_NULL; static inline int blob_is_null(blob_t b) { - return b.ptr == NULL; + return b.len == 0; } char *blob_cstr_dup(blob_t b); @@ -47,4 +47,6 @@ int blob_pull_matching(blob_t *b, blob_t e); unsigned int blob_pull_uint(blob_t *b, int radix); blob_t blob_pull_cspn(blob_t *b, const blob_t cspn); +blob_t blob_expand_head(blob_t *b, blob_t limits, unsigned char sep); + #endif |