char * foo = realloc(NULL, 100); // same as char * foo = malloc(100);
realloc(foo, 0); // same as free(foo);