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

Function str_printf

util/kconfig/util.c:65–73  ·  view source on GitHub ↗

Append printf formatted string to growable string */

Source from the content-addressed store, hash-verified

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

Callers 9

sym_warn_unmet_depFunction · 0.85
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 2

str_appendFunction · 0.85
vsnprintfFunction · 0.50

Tested by

no test coverage detected