! readSizeTFromChar() : * @return : size_t value read from input in `char` format. * allows and interprets K, KB, KiB, M, MB and MiB suffix. * Will also modify `*stringPtr`, advancing it to position where it stopped reading. * Note : function will exit() program if digit sequence overflows */
| 362 | * Will also modify `*stringPtr`, advancing it to position where it stopped reading. |
| 363 | * Note : function will exit() program if digit sequence overflows */ |
| 364 | static size_t readSizeTFromChar(const char** stringPtr) { |
| 365 | static const char errorMsg[] = "error: numeric value overflows size_t"; |
| 366 | size_t result; |
| 367 | if (readSizeTFromCharChecked(stringPtr, &result)) { errorOut(errorMsg); } |
| 368 | return result; |
| 369 | } |
| 370 | |
| 371 | /** longCommandWArg() : |
| 372 | * check if *stringPtr is the same as longCommand. |
no test coverage detected