Re:Why Does Calloc Exist?
by AceJohnny2 on Sunday November 13, 2022 @08:19PM
(#33589194)
Thanks! Indeed the `(size_t)-1` threw me off, and the `m && n` was an interesting obfuscation for checking whether either are 0.
Then it would be that (by substitution)
so except if n = 0. In the latter case, m can be as big as it wants--p will always evaluate to 0.And (size_t)-1 is a silly way to write SIZE_MAX (but it saves you a dependency).