3 ms·
It's OpenBSD specific. But it's also just 10 lines of portable C that are permissively licensed and can be added to any project without problems. It's even in a
by wongarsu 12y ago
It's OpenBSD specific. But it's also just 10 lines of portable C that are permissively licensed and can be added to any project without problems. It's even in a separate source file for this very purpose [1]
[1] https://github.com/robertbachmann/openbsd-libc/blob/master/stdlib/reallocarray.c https://github.com/robertbachmann/openbsd-libc/blob/master/s...
- angersock 12y agoI like that. I might even swipe it for my own projects.