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

Function UTIL_allocateFileNamesTable

freebsd/contrib/zstd/programs/util.c:432–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

430}
431
432FileNamesTable* UTIL_allocateFileNamesTable(size_t tableSize)
433{
434 const char** const fnTable = (const char**)malloc(tableSize * sizeof(*fnTable));
435 FileNamesTable* fnt;
436 if (fnTable==NULL) return NULL;
437 fnt = UTIL_assembleFileNamesTable(fnTable, tableSize, NULL);
438 fnt->tableSize = 0; /* the table is empty */
439 return fnt;
440}
441
442void UTIL_refFilename(FileNamesTable* fnt, const char* filename)
443{

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

mallocFunction · 0.85

Tested by

no test coverage detected