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

Function UTIL_getTotalFileSize

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

Source from the content-addressed store, hash-verified

294
295
296U64 UTIL_getTotalFileSize(const char* const * fileNamesTable, unsigned nbFiles)
297{
298 U64 total = 0;
299 unsigned n;
300 for (n=0; n<nbFiles; n++) {
301 U64 const size = UTIL_getFileSize(fileNamesTable[n]);
302 if (size == UTIL_FILESIZE_UNKNOWN) return UTIL_FILESIZE_UNKNOWN;
303 total += size;
304 }
305 return total;
306}
307
308
309/* condition : @file must be valid, and not have reached its end.

Callers 2

BMK_benchFileTableFunction · 0.85
BMK_benchFilesAdvancedFunction · 0.85

Calls 1

UTIL_getFileSizeFunction · 0.85

Tested by

no test coverage detected