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

Function xstrdup

scripts/config/util.c:109–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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

no outgoing calls

Tested by

no test coverage detected