MCPcopy Index your code
hub / github.com/git/git / strbuf_init

Function strbuf_init

strbuf.c:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67char strbuf_slopbuf[1];
68
69void strbuf_init(struct strbuf *sb, size_t hint)
70{
71 struct strbuf blank = STRBUF_INIT;
72 memcpy(sb, &blank, sizeof(*sb));
73 if (hint)
74 strbuf_grow(sb, hint);
75}
76
77void strbuf_release(struct strbuf *sb)
78{

Callers 15

do_config_fromFunction · 0.85
write_zip_archiveFunction · 0.85
init_merge_optionsFunction · 0.85
trailers_atom_parserFunction · 0.85
push_stack_elementFunction · 0.85
update_oneFunction · 0.85
pre_push_hook_data_allocFunction · 0.85
diff_tree_oidFunction · 0.85
new_http_object_requestFunction · 0.85
dir_iterator_beginFunction · 0.85
xdi_diff_outfFunction · 0.85

Calls 1

strbuf_growFunction · 0.85

Tested by 1