Lines Matching refs:ptr
16 static int ps_stdlib_malloc(UNUSED void *cookie, size_t size, void **ptr)
18 assert(ptr != NULL);
19 *ptr = malloc(size);
20 if (*ptr == NULL) {
26 static int ps_stdlib_calloc(UNUSED void *cookie, size_t nmemb, size_t size, void **ptr)
28 assert(ptr != NULL);
29 *ptr = calloc(nmemb, size);
30 if (*ptr == NULL) {
36 static int ps_stdlib_free(UNUSED void *cookie, UNUSED size_t size, void *ptr)
38 free(ptr);