1/*
2 * Copyright 2019 Intel Corporation
3 * SPDX-License-Identifier: MIT
4 *
5 * File operations helpers
6 */
7
8#ifndef _OS_FILE_H_
9#define _OS_FILE_H_
10
11#ifdef  __cplusplus
12extern "C" {
13#endif
14
15/*
16 * Read a file.
17 * Returns a char* that the caller must free(), or NULL and sets errno.
18 */
19char *
20os_read_file(const char *filename);
21
22#ifdef __cplusplus
23}
24#endif
25
26#endif /* _OS_FILE_H_ */
27