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

Function getTotalTableSize

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

Source from the content-addressed store, hash-verified

447}
448
449static size_t getTotalTableSize(FileNamesTable* table)
450{
451 size_t fnb = 0, totalSize = 0;
452 for(fnb = 0 ; fnb < table->tableSize && table->fileNames[fnb] ; ++fnb) {
453 totalSize += strlen(table->fileNames[fnb]) + 1; /* +1 to add '\0' at the end of each fileName */
454 }
455 return totalSize;
456}
457
458FileNamesTable*
459UTIL_mergeFileNamesTable(FileNamesTable* table1, FileNamesTable* table2)

Callers 1

UTIL_mergeFileNamesTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected