#include <mr_mem.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

void is_null(const char* str)
{
  if (str == NULL)
        printf("pointer is null\n");
  else
        printf("pointer is NOT null\n");
}

int main(void)
{
  char* str = NULL;

  printf("*** Test with mr_free\n");
  str = mr_malloc(10);
  is_null(str);
  mr_free(str);
  is_null(str);

  printf("*** Test with NULL\n");
  str = NULL;
  is_null(str);
  mr_free(str);
  is_null(str);

  return 0;
}

