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

Function str_printf

scripts/config/util.c:66–74  ·  view source on GitHub ↗

Append printf formatted string to growable string */

Source from the content-addressed store, hash-verified

64
65/* Append printf formatted string to growable string */
66void str_printf(struct gstr *gs, const char *fmt, ...)
67{
68 va_list ap;
69 char s[10000]; /* big enough... */
70 va_start(ap, fmt);
71 vsnprintf(s, sizeof(s), fmt, ap);
72 str_append(gs, s);
73 va_end(ap);
74}
75
76/* Retrieve value of growable string */
77char *str_get(struct gstr *gs)

Callers 8

search_confFunction · 0.85
expr_print_gstr_helperFunction · 0.85
search_confFunction · 0.85
get_def_strFunction · 0.85
get_prompt_strFunction · 0.85
get_symbol_props_strFunction · 0.85
get_symbol_strFunction · 0.85
menu_get_ext_helpFunction · 0.85

Calls 1

str_appendFunction · 0.85

Tested by

no test coverage detected