提交 ed008d7b 编写于 作者: P Pranit Bauva 提交者: Junio C Hamano

strbuf: describe the return value of strbuf_read_file

Mentored-by: NLars Schneider <larsxschneider@gmail.com>
Mentored-by: NChristian Couder <chriscool@tuxfamily.org>
Signed-off-by: NPranit Bauva <pranit.bauva@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 76542869
......@@ -363,6 +363,8 @@ extern ssize_t strbuf_read(struct strbuf *, int fd, size_t hint);
/**
* Read the contents of a file, specified by its path. The third argument
* can be used to give a hint about the file size, to avoid reallocs.
* Return the number of bytes read or a negative value if some error
* occurred while opening or reading the file.
*/
extern ssize_t strbuf_read_file(struct strbuf *sb, const char *path, size_t hint);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册