diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-09-17 20:06:46 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-27 00:33:29 -0700 |
commit | a9390b9fcefb18c4ccdb521086a051bc9112e03d (patch) | |
tree | f34be08d5e61f04d3d8cf876628dcf08597097c5 /strbuf.h | |
parent | b4833a2c62578bdbfd300e296702214cb1b9a601 (diff) | |
download | git-a9390b9fcefb18c4ccdb521086a051bc9112e03d.tar.gz |
Add strbuf_read_file().
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -108,6 +108,7 @@ extern void strbuf_addf(struct strbuf *sb, const char *fmt, ...); extern size_t strbuf_fread(struct strbuf *, size_t, FILE *); /* XXX: if read fails, any partial read is undone */ extern ssize_t strbuf_read(struct strbuf *, int fd, size_t hint); +extern int strbuf_read_file(struct strbuf *sb, const char *path); extern int strbuf_getline(struct strbuf *, FILE *, int); |