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
This commit is contained in:
parent
bb5cce33f0
commit
c4d1ffe539
15 changed files with 451 additions and 88 deletions
5
slice.h
Normal file
5
slice.h
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#include <stddef.h> // size_t
|
||||
|
||||
#define slice_t(type) struct { type buf; size_t len; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue