MCPcopy Create free account
hub / github.com/F-Stack/f-stack / allocarray

Function allocarray

tools/libutil/login_cap.c:82–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80
81
82static const char **
83allocarray(size_t sz)
84{
85 static const char **p;
86
87 if (sz <= internal_arraysz)
88 p = internal_array;
89 else if ((p = reallocarray(internal_array, sz, sizeof(char*))) != NULL) {
90 internal_arraysz = sz;
91 internal_array = p;
92 }
93 return p;
94}
95
96
97/*

Callers 1

arrayizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected