realloc with NULL is same as malloc
ok guenther