Try allocating memory, and return NULL if failed. */
| 195 | |
| 196 | /* Try allocating memory, and return NULL if failed. */ |
| 197 | void *ztrycalloc(size_t size) { |
| 198 | void *ptr = ztrycalloc_usable(size, NULL); |
| 199 | return ptr; |
| 200 | } |
| 201 | |
| 202 | /* Allocate memory or panic. |
| 203 | * '*usable' is set to the usable size if non NULL. */ |
no test coverage detected