/**
 *  Header for memory allocation/reallocation wrapper functions.
 *
 *  Author: Ramkumar Natarajan (nrk@cs.purdue.edu)
 **/

#ifndef MEMUTILS_H__
#define MEMUTILS_H__

#include <stdlib.h>

extern void *my_malloc(size_t nbytes);
extern void *my_realloc(void *origptr, size_t nbytes);

#define MY_FREE(x)      (free((x)), x = NULL)

#endif
