Hacker News new | ask | show | jobs
by yarrel 4100 days ago
Is reallocarray() BSD-specific? That might explain it.
1 comments

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/s...

I like that. I might even swipe it for my own projects.