In C, I would like to have a structure which would receive, from time to time, new data of a particular kind (lets say a float value that tells the current temperature). Now the problem is that I don't know how many of such data I'll get over time (the more time the software stays open, the more data I'll receive), nor I want to limit the amount of data my structure will accept.
How can I do this in C?
To make a relation, that would be equivalent to, in C++, declare a structure with a Vector or List and continuously call vector::push_back(T) each time new data arises, being capable of doing this till all memory in the PC is consumed. Now, AFAIK, there is not container such as vector or list available in C, so how to do this?
Thanks,
Momergil