summaryrefslogtreecommitdiffstats
path: root/src/util/os_file.h
blob: 2f97c19ed5597d4dfbf427377bdd2cfcb4de014c (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
/*
 * Copyright 2019 Intel Corporation
 * SPDX-License-Identifier: MIT
 *
 * File operations helpers
 */

#ifndef _OS_FILE_H_
#define _OS_FILE_H_

#ifdef  __cplusplus
extern "C" {
#endif

/*
 * Read a file.
 * Returns a char* that the caller must free(), or NULL and sets errno.
 */
char *
os_read_file(const char *filename);

#ifdef __cplusplus
}
#endif

#endif /* _OS_FILE_H_ */