There are different ways of creating dynamic strings in C (with length that constantly changes). After some google search, the main way of doing this is to use realloc().
A way I implemented this is using linked lists with 32 bytes chunks for each node.
I was wondering if there are better ways of tackling this apart from using realloc() and linked lists, and what the cons and pros for each method are.
EDIT The reason I am doing this is because I'm receiving dynamic data from a socket recv(), and was looking for a flexible way of storing it, without allocating huge amounts of data that aren't needed.