You may want to think how efficient this will be within your program using realloc though.