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

Function strbuf_addstr

strbuf.h:308–311  ·  view source on GitHub ↗

* Add a NUL-terminated string to the buffer. * * NOTE: This function will *always* be implemented as an inline or a macro * using strlen, meaning that this is efficient to write things like: * * strbuf_addstr(sb, "immediate string"); * */

Source from the content-addressed store, hash-verified

306 *
307 */
308static inline void strbuf_addstr(struct strbuf *sb, const char *s)
309{
310 strbuf_add(sb, s, strlen(s));
311}
312
313/**
314 * Add a NUL-terminated string the specified number of times to the buffer.

Callers 15

handle_path_includeFunction · 0.85
add_config_scope_argFunction · 0.85
add_comment_char_adviceFunction · 0.85
store_create_sectionFunction · 0.85
write_pairFunction · 0.85
get_common_dirFunction · 0.85
get_common_dir_noenvFunction · 0.85
is_git_directoryFunction · 0.85

Calls 1

strbuf_addFunction · 0.85

Tested by 12

prefix_magicFunction · 0.68
init_pathspec_itemFunction · 0.68
pathspec_magic_namesFunction · 0.68
do_sendbytesFunction · 0.68
cmd__pack_mtimesFunction · 0.68
bitmap_writeFunction · 0.68
parallel_nextFunction · 0.68
no_jobFunction · 0.68
task_finishedFunction · 0.68
testsuiteFunction · 0.68