#include <stdio.h>
#include <string.h>
#include "../src/mlist.h"

int main (int argc, char *argv[]) {
  
  mlist_t *list;
  int *n;
  char *c;
  char *s = NULL;
  const char *name = "cubicdaiya";
  list = mlist_create();
  n    = mlist_palloc(list, sizeof(int));
  list = mlist_extend(list);
  c    = mlist_palloc(list, sizeof(char));
  list = mlist_extend(list);
  s    = mlist_palloc(list, strlen(name) + 1);
  list = mlist_extend(list);
  *n = 5;
  *c = 'a';
  strncpy(s, name, strlen(name) + 1);
  printf("n = %d\n", *n);
  printf("c = %c\n", *c);
  printf("name = %s\n", s);
  mlist_destroy(list);
  
  return 0;
}

#include <stdio.h>
#include <string.h>
#include "mlist.h"

int main (int argc, char *argv[]) {
  
  mlist_t *list;
  int *n;
  char *c;
  char *s = NULL;
  const char *name = "cubicdaiya";
  list = mlist_create();
  n    = mlist_palloc(list, sizeof(int));
  list = mlist_extend(list);
  c    = mlist_palloc(list, sizeof(char));
  list = mlist_extend(list);
  s    = mlist_palloc(list, strlen(name) + 1);
  list = mlist_extend(list);
  *n = 5;
  *c = 'a';
  strncpy(s, name, strlen(name) + 1);
  printf("n = %d\n", *n);
  printf("c = %c\n", *c);
  printf("name = %s\n", s);
  mlist_destroy(list);
  
  return 0;
}

Revert "mv example source code"
Revert "mv example source code"

This reverts commit 7f0d00f7ff862b812cdf427dc717dee6b02ac84b.
