MCPcopy Create free account
hub / github.com/catboost/catboost / yreallocf

Function yreallocf

util/folder/fts.cpp:230–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230static void*
231yreallocf(void* ptr, size_t size)
232{
233 void* nptr;
234
235 nptr = realloc(ptr, size);
236 if (!nptr && ptr) {
237 free(ptr);
238 }
239 return (nptr);
240}
241
242FTS* yfts_open(char* const* argv, int options, int (*compar)(const FTSENT**, const FTSENT**))
243{

Callers 1

fts_pallocFunction · 0.85

Calls 2

reallocFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected