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

Function xstrdup

util/kconfig/util.c:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108char *xstrdup(const char *s)
109{
110 char *p;
111
112 p = strdup(s);
113 if (p)
114 return p;
115 fprintf(stderr, "Out of memory.\n");
116 exit(1);
117}
118
119char *xstrndup(const char *s, size_t n)
120{

Callers 15

env_addFunction · 0.85
env_expandFunction · 0.85
do_error_ifFunction · 0.85
do_filenameFunction · 0.85
do_infoFunction · 0.85
do_linenoFunction · 0.85
do_shellFunction · 0.85
do_warning_ifFunction · 0.85
variable_expandFunction · 0.85
variable_addFunction · 0.85
eval_clauseFunction · 0.85
expand_dollar_with_argsFunction · 0.85

Calls 3

fprintfFunction · 0.85
exitFunction · 0.85
strdupFunction · 0.50

Tested by

no test coverage detected