Add stream helper library
This library provides thread-unsafe fgets()- and fread()-like functions where the caller does not have to supply a buffer. It maintains a couple of static buffers and provides an API to use them. [rr: allow input from files other than stdin] [jn: with tests, documentation, and error handling improvements] Signed-off-by: NDavid Barr <david.barr@cordelta.com> Signed-off-by: NRamkumar Ramachandra <artagnon@gmail.com> Signed-off-by: NJonathan Nieder <jrnieder@gmail.com> Signed-off-by: NJunio C Hamano <gitster@pobox.com>
Showing
test-line-buffer.c
0 → 100644
vcs-svn/line_buffer.c
0 → 100644
vcs-svn/line_buffer.h
0 → 100644
vcs-svn/line_buffer.txt
0 → 100644
想要评论请 注册 或 登录