blob: 5e5e1e1ab866144320099dad06da38d5b6e75a79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/**
* @file file.h
* @brief File I/O utilities
* @date 2024-02-24
* @copyright Copyright (c) 2024
*/
#pragma once
#include "defines.h"
#include "str.h"
typedef struct str8_opt {
Str8 contents;
bool has_value;
} str8_opt;
const char* string_from_file(const char* path);
str8_opt str8_from_file(arena* a, Str8 path);
typedef struct {
char* data;
size_t size;
} FileData;
FileData load_spv_file(const char* path);
|