I’m creating a ‘string’
char buffer[BUFFER_SIZE]
but when this gets full, I want to concatenate it onto a pre-existing string, but it needs to have unlimited length and repeat this process until I’ve read all the data.
Any ideas on how I can do this?
What you’ve described is an alternate definition for
realloc.