MCPcopy Create free account
hub / github.com/NetHack/NetHack / strbuf_append

Function strbuf_append

src/strutil.c:16–24  ·  view source on GitHub ↗

strbuf_append() appends given str to strbuf->str */

Source from the content-addressed store, hash-verified

14
15/* strbuf_append() appends given str to strbuf->str */
16void
17strbuf_append(strbuf_t *strbuf, const char *str)
18{
19 int len = (int) strlen(str) + 1;
20
21 strbuf_reserve(strbuf,
22 len + (strbuf->str ? (int) strlen(strbuf->str) : 0));
23 Strcat(strbuf->str, str);
24}
25
26/* strbuf_reserve() ensure strbuf->str has storage for len characters */
27void

Callers 12

all_options_condsFunction · 0.85
all_options_menucolorsFunction · 0.85
all_options_msgtypesFunction · 0.85
all_options_apesFunction · 0.85
all_options_paletteFunction · 0.85
all_options_strbufFunction · 0.85
savedsym_strbufFunction · 0.85
get_changed_key_bindsFunction · 0.85
all_options_autocompleteFunction · 0.85

Calls 1

strbuf_reserveFunction · 0.85

Tested by

no test coverage detected