| 294 | |
| 295 | |
| 296 | U64 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. |
no test coverage detected