Merge branch 'pb/strbuf-read-file-doc'

* pb/strbuf-read-file-doc:
  strbuf: describe the return value of strbuf_read_file
This commit is contained in:
Junio C Hamano 2016-06-27 09:56:46 -07:00
Родитель 3a76459922 ed008d7bb9
Коммит ed319fca33
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -377,6 +377,8 @@ extern ssize_t strbuf_read_once(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);