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

Function str_free

scripts/config/util.c:43–49  ·  view source on GitHub ↗

Free storage for growable string */

Source from the content-addressed store, hash-verified

41
42/* Free storage for growable string */
43void str_free(struct gstr *gs)
44{
45 if (gs->s)
46 free(gs->s);
47 gs->s = NULL;
48 gs->len = 0;
49}
50
51/* Append to growable string */
52void str_append(struct gstr *gs, const char *s)

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected