> if the product nmemb * size would wraparound size_t.
Gah! "Wraparound" is not a verb! You'd think someone writing a computer language specification would try to use (human) language correctly.
Re:Why Does Calloc Exist?
by someweirdperson on Sunday November 13, 2022 @05:53AM
(#33581860)
If it is like overflow, it should indeed be "aroundwrap".
FWIW, it's a technical term defined as:
> the process by which a value is reduced modulo 2ᴺ, where N is the width of the resulting type
Re:Why Does Calloc Exist?
by Dylan16807 on Sunday November 13, 2022 @08:30PM
(#33589253)
That's not what the objection is. Your quote is clearly defining a noun.
Verbing weirds language (https://www.gocomics.com/calvinandhobbes/1993/01/25), but in English, you can verb (https://en.wikipedia.org/wiki/Conversion_(word_formation)#Ve...) a lot of phrases.
> 7.24.3.2 The calloc function
> […]
> Returns
> The calloc function returns either a pointer to the allocated space or a null pointer if the space cannot be allocated or if the product nmemb * size would wraparound size_t.
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3054.pdf