text: #include "libmx.h"
  
  // Allocates memmory for new array.
  char **mx_new_strarr(int size) {
      char **arr = (char **)malloc(sizeof(char *) * (size + 1));
      char *msg;
  
      if (arr == NULL) {
          msg = "malloc error\n";
          write(2, msg, (int)strlen(msg));
          exit(1);
      }
  
      for (int i = 0; i < size; i++) {
      	arr[i] = NULL;
      }
      arr[size] = NULL;
      return arr;
  }
  