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

Function UTIL_assembleFileNamesTable2

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

Source from the content-addressed store, hash-verified

404}
405
406static FileNamesTable*
407UTIL_assembleFileNamesTable2(const char** filenames, size_t tableSize, size_t tableCapacity, char* buf)
408{
409 FileNamesTable* const table = (FileNamesTable*) malloc(sizeof(*table));
410 CONTROL(table != NULL);
411 table->fileNames = filenames;
412 table->buf = buf;
413 table->tableSize = tableSize;
414 table->tableCapacity = tableCapacity;
415 return table;
416}
417
418FileNamesTable*
419UTIL_assembleFileNamesTable(const char** filenames, size_t tableSize, char* buf)

Callers 2

UTIL_createExpandedFNTFunction · 0.85

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected