bytebuffer.h (406B)
1 #ifndef MINIROON_BYTEBUFFER_H 2 #define MINIROON_BYTEBUFFER_H 3 4 // implementation: 5 // {IMP} bytebuffer.c 6 7 #include <stddef.h> 8 9 typedef struct bytebuffer_s { 10 char *data; 11 size_t len; 12 } bytebuffer; 13 14 int bbcmp(const bytebuffer a, const bytebuffer b); 15 int strbbcmp(const bytebuffer bb, const char *s); 16 17 void dbg_print_bb(const bytebuffer bb); 18 void dbg_print_bb1(const char *text, const bytebuffer bb); 19 20 #endif