* 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:
snarmph 2021-10-06 00:13:10 +02:00
parent bb5cce33f0
commit c4d1ffe539
15 changed files with 451 additions and 88 deletions

12
str.h
View file

@ -4,15 +4,17 @@
extern "C" {
#endif
#include <stddef.h>
#include "slice.h"
#include "strview.h"
#define STR_TESTING
typedef struct {
char *buf;
size_t len;
} str_t;
// typedef struct {
// char *buf;
// size_t len;
// } str_t;
typedef slice_t(char *) str_t;
str_t strInit(void);
str_t strInitStr(const char *cstr);