Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
108
char *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
119
char *xstrndup(const char *s, size_t n)
120
{
Callers
15
env_add
Function · 0.85
env_expand
Function · 0.85
do_error_if
Function · 0.85
do_filename
Function · 0.85
do_info
Function · 0.85
do_lineno
Function · 0.85
do_shell
Function · 0.85
do_warning_if
Function · 0.85
variable_expand
Function · 0.85
variable_add
Function · 0.85
eval_clause
Function · 0.85
expand_dollar_with_args
Function · 0.85
Calls
3
fprintf
Function · 0.85
exit
Function · 0.85
strdup
Function · 0.50
Tested by
no test coverage detected