only update affected area of bitmap
[AROS.git] / compiler / purify / src / util.c
blob68abedf3d6750dfc51d0ce989aa0eb03b26e8cbb
1 #include <stdlib.h>
2 #include <stdio.h>
3 #include "util.h"
5 void * xmalloc (int size)
7 void * ptr = malloc (size);
9 if (!ptr)
11 fprintf (stderr, "Out of memory\n");
12 exit (20);
15 return ptr;
18 void xfree (void * ptr)
20 if (ptr)
21 free (ptr);
22 else
23 fprintf (stderr, "Warning: free (NULL);\n");