summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-09-22 23:40:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-10-14 14:04:20 +0200
commit51dce5facb4d1a6f182ede9654b25c2e83878aee (patch)
tree5fb210b3d69359c2a2af0046f400d1f5ea4788f0 /include
parent6e30646fa28908b3f199d070ebb85151fef52a10 (diff)
downloadbarebox-51dce5facb4d1a6f182ede9654b25c2e83878aee.tar.gz
barebox-51dce5facb4d1a6f182ede9654b25c2e83878aee.tar.xz
add function to read single line files
Often small files are used to store the value od a variable. This adds a function to easily read such a variable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 47b2e08296..2fe710c368 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -35,4 +35,6 @@ char *simple_itoa(unsigned int i);
int write_full(int fd, void *buf, size_t size);
int read_full(int fd, void *buf, size_t size);
+char *read_file_line(const char *fmt, ...);
+
#endif /* __LIBBB_H */