Lines Matching refs:ptr
41 void *ptr = malloc(size); in malloc_or_warn() local
42 if (ptr == NULL && size != 0) in malloc_or_warn()
44 return ptr; in malloc_or_warn()
50 void *ptr = malloc(size); in xmalloc() local
51 if (ptr == NULL && size != 0) in xmalloc()
53 return ptr; in xmalloc()
59 void* FAST_FUNC xrealloc(void *ptr, size_t size) in xrealloc() argument
61 ptr = realloc(ptr, size); in xrealloc()
62 if (ptr == NULL && size != 0) in xrealloc()
64 return ptr; in xrealloc()
71 void *ptr = xmalloc(size); in xzalloc() local
72 memset(ptr, 0, size); in xzalloc()
73 return ptr; in xzalloc()