! readU32FromChar() : * @return : unsigned integer 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 */
| 317 | * Will also modify `*stringPtr`, advancing it to position where it stopped reading. |
| 318 | * Note : function will exit() program if digit sequence overflows */ |
| 319 | static unsigned readU32FromChar(const char** stringPtr) { |
| 320 | static const char errorMsg[] = "error: numeric value overflows 32-bit unsigned int"; |
| 321 | unsigned result; |
| 322 | if (readU32FromCharChecked(stringPtr, &result)) { errorOut(errorMsg); } |
| 323 | return result; |
| 324 | } |
| 325 | |
| 326 | /*! readSizeTFromCharChecked() : |
| 327 | * @return 0 if success, and store the result in *value. |
no test coverage detected