summaryrefslogtreecommitdiffstats
path: root/src/common/file.h
blob: 18d631d9a5e12ccdfddf9982c5c133fdeb1978da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-FileCopyrightText: 2014-2024 Rafael G. Martins <rafael@rafaelmartins.eng.br>
// SPDX-License-Identifier: BSD-3-Clause

#pragma once

#include <stddef.h>
#include <stdbool.h>
#include "error.h"

#define BC_FILE_CHUNK_SIZE 1024

char* bc_file_get_contents(const char *path, bool utf8, size_t *len, bc_error_t **err);