(2 months ago)commit 512c504: Slice forward approach
tree / slice.h
#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