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

Function xstrndup

scripts/config/util.c:120–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120char *xstrndup(const char *s, size_t n)
121{
122 char *p;
123
124 p = strndup(s, n);
125 if (p)
126 return p;
127 fprintf(stderr, "Out of memory.\n");
128 exit(1);
129}

Callers 1

eval_clauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected