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

Function strbuf_addch

strbuf.h:232–238  ·  view source on GitHub ↗

* Add a single character to the buffer. */

Source from the content-addressed store, hash-verified

230 * Add a single character to the buffer.
231 */
232static inline void strbuf_addch(struct strbuf *sb, int c)
233{
234 if (!strbuf_avail(sb))
235 strbuf_grow(sb, 1);
236 sb->buf[sb->len++] = c;
237 sb->buf[sb->len] = '\0';
238}
239
240/**
241 * Add a character the specified number of times to the buffer.

Callers 15

parse_valueFunction · 0.85
get_valueFunction · 0.85
get_extended_base_varFunction · 0.85
get_base_varFunction · 0.85
git_parse_sourceFunction · 0.85
add_config_scope_argFunction · 0.85
store_create_sectionFunction · 0.85
write_pairFunction · 0.85
setup_explicit_git_dirFunction · 0.85
setup_discovered_git_dirFunction · 0.85

Calls 2

strbuf_availFunction · 0.85
strbuf_growFunction · 0.85

Tested by 1

prefix_magicFunction · 0.68