Allocate memory and zero it or panic */
| 176 | |
| 177 | /* Allocate memory and zero it or panic */ |
| 178 | void *zcalloc(size_t size) { |
| 179 | void *ptr = ztrycalloc_usable(size, NULL); |
| 180 | if (!ptr) zmalloc_oom_handler(size); |
| 181 | return ptr; |
| 182 | } |
| 183 | |
| 184 | /* Try allocating memory, and return NULL if failed. */ |
| 185 | void *ztrycalloc(size_t size) { |
no test coverage detected