summaryrefslogblamecommitdiffstats
path: root/bstrlen.c
blob: 58fe21a895b56c04deca3a3d1452da5a2bb366cb (plain) (tree)
1
2
3
4
5
6
7
8

                   

                   



                                                          
#include <string.h>
#include "bstr.h"
#include <uint32.h>
#include <str.h>

size_t bstrlen(const char* a) {
  if (*a) return str_len(a); else return uint32_read(a+1);
}