aboutsummaryrefslogtreecommitdiff
path: root/filesystem/include/filesystem.h
blob: 1c354b7b9cd880ee55815296846043b61cb30741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * Various filesystem utilities.
 */
#pragma once

#include <stddef.h>
#include <stdio.h>

/// Get the file's size.
size_t get_file_size(FILE* file);

/// Read the entire contents of the file into memory.
void* read_file(const char* filepath);