On Wed, 7 Jan 2026 21:36:13 +0300 Dmitry Antipov <[email protected]> wrote:
> Introduce 'memvalue()' which uses 'memparse()' to parse a string with > optional memory suffix into a number and returns this number or ULLONG_MAX > if the number is negative or an unrecognized character was encountered. I'm not understanding why negative numbers get this treatment - could you please add the reasoning to the code comment? Presumably it's because memvalue() returns ULL, presumably because memparse() returns ULL? Maybe that's all wrong, and memparse() should have returned LL - negative numbers are a bit odd, but why deny that option. With the new memvalue() we get to partially address that?
