libfile: Document that read_file() returns a terminated buffer
read_file() and read_file_2() return a '\0' terminated buffer to make
sure the buffer is usable as a string. Other code like read_file_line()
depends on this behaviour, so document it explicitly.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 09fd526 commit 13d9ed111f326a1fa4c38e44617cb74a8ab474d2
@Sascha Hauer Sascha Hauer authored on 17 Sep 2019
Showing 1 changed file
View
lib/libfile.c