colla/slice.h
snarmph c4d1ffe539 added:
* file: small wrap over winapi for windows and stdio for posix
 * fs: small wrapper over stat
 * slice: slice macro type
modified:
 * str and strview are now slices
2021-10-06 00:13:10 +02:00

5 lines
100 B
C

#pragma once
#include <stddef.h> // size_t
#define slice_t(type) struct { type buf; size_t len; }