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
12
str.h
12
str.h
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue