added some utility functions + fixed error in ostrAppendview

This commit is contained in:
snarmph 2021-10-31 10:25:46 +00:00
parent aa39e2563d
commit be71719f73
7 changed files with 47 additions and 18 deletions

5
file.h
View file

@ -8,7 +8,10 @@ extern "C" {
#include "str.h"
enum {
FILE_READ, FILE_WRITE, FILE_BOTH
FILE_READ = 1 << 0,
FILE_WRITE = 1 << 1,
FILE_CLEAR = 1 << 2,
FILE_BOTH = 1 << 3
};
typedef struct {