MCPcopy Create free account
hub / github.com/git/git / strbuf_getdelim

Function strbuf_getdelim

strbuf.c:726–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726static int strbuf_getdelim(struct strbuf *sb, FILE *fp, int term)
727{
728 if (strbuf_getwholeline(sb, fp, term))
729 return EOF;
730 if (sb->buf[sb->len - 1] == term)
731 strbuf_setlen(sb, sb->len - 1);
732 return 0;
733}
734
735int strbuf_getdelim_strip_crlf(struct strbuf *sb, FILE *fp, int term)
736{

Callers 2

strbuf_getline_lfFunction · 0.85
strbuf_getline_nulFunction · 0.85

Calls 2

strbuf_getwholelineFunction · 0.85
strbuf_setlenFunction · 0.85

Tested by

no test coverage detected