Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coreboot/coreboot
/ xstrndup
Function
xstrndup
util/kconfig/util.c:119–128 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
117
}
118
119
char *xstrndup(const char *s, size_t n)
120
{
121
char *p;
122
123
p = strndup(s, n);
124
if (p)
125
return p;
126
fprintf(stderr,
"Out of memory.\n"
);
127
exit(1);
128
}
Callers
1
eval_clause
Function · 0.85
Calls
3
strndup
Function · 0.85
fprintf
Function · 0.85
exit
Function · 0.85
Tested by
no test coverage detected