diff options
author | Thara Gopinath <thara.gopinath@linaro.org> | 2017-07-14 13:25:17 -0400 |
---|---|---|
committer | Lisa Nguyen <lisa.nguyen@linaro.org> | 2017-09-19 13:04:22 -0700 |
commit | 56f6178da2825ff6b9f894c0e2812591817718e7 (patch) | |
tree | e71e8794de1c373d0b4c630850c9e00b76fb5873 /utils.h | |
parent | e48aec79e8b75266562b9f0b6a8d5940f52765ae (diff) |
Define file operations.
This patch adds functions for file open, file read line and
file close.
Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -25,6 +25,7 @@ extern int file_read_value(const char *path, const char *name, const char *format, void *value); extern int file_write_value(const char *path, const char *name, const char *format, void *value); - - +extern int file_open(FILE **fp, const char *path, const char *name, const char *format); +extern int file_read_line(FILE **fp, char *line, int size); +extern int file_close(FILE **fp); #endif |