MCPcopy Create free account
hub / github.com/Entware/Entware / str_new

Function str_new

scripts/config/util.c:32–40  ·  view source on GitHub ↗

Allocate initial growable string */

Source from the content-addressed store, hash-verified

30
31/* Allocate initial growable string */
32struct gstr str_new(void)
33{
34 struct gstr gs;
35 gs.s = xmalloc(sizeof(char) * 64);
36 gs.len = 64;
37 gs.max_width = 0;
38 strcpy(gs.s, "\0");
39 return gs;
40}
41
42/* Free storage for growable string */
43void str_free(struct gstr *gs)

Callers 7

menuInfoMethod · 0.85
search_confFunction · 0.85
show_helpFunction · 0.85
show_helpFunction · 0.85
search_confFunction · 0.85
print_helpFunction · 0.85
get_relations_strFunction · 0.85

Calls 1

xmallocFunction · 0.85

Tested by

no test coverage detected