#ifndef __SLICE_H /* * Slice management */ struct slice { const char *ptr; size_t size; }; struct slice slice_fromcstr(const char *s); int32_t slice_isempty(const struct slice s); struct slice slice_empty(void); char * slice_tocstr(const struct slice s); #endif