Try allocating memory, and return NULL if failed. */
| 183 | |
| 184 | /* Try allocating memory, and return NULL if failed. */ |
| 185 | void *ztrycalloc(size_t size) { |
| 186 | void *ptr = ztrycalloc_usable(size, NULL); |
| 187 | return ptr; |
| 188 | } |
| 189 | |
| 190 | /* Allocate memory or panic. |
| 191 | * '*usable' is set to the usable size if non NULL. */ |
no test coverage detected