Profile

Masanori Ogino 𓀁

181351 posts 1993 follows 1215 followers

Please pay attention to random failures.

https://mstdn.maud.io/@omasanori
Masanori Ogino 𓀁 Masanori Ogino 𓀁 reblogged at 6 years ago

otto@openbsd otto@bsd.network

Another friend of #OpenBSD's @malloc is recallocarray(p, n, newn, sz); It reallocates an array from n to newn members, and does the tedious clearing of new mem for you, plus overflow checking. If you're shrinking, data is explicitly cleared as well. man.openbsd.org/malloc#IDIOMS