Linux Audio
Check our new training course
Embedded Linux Audio
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <stdlib.h> #include <errno.h> void *__malloc0(size_t); void *calloc(size_t m, size_t n) { if (n && m > (size_t)-1/n) { errno = ENOMEM; return 0; } return __malloc0(n * m); }