All functions are working well, PS: @lambda2 you're realloc is not better than mine.. Niahah