Challenge: std::string in C
Practice dynamic memory allocations by implementing a resizable string in C.
We'll cover the following...
Problem statement
You want to implement a pseudo data structure for storing strings of arbitrary length. The advantage of your string data structure over raw C-style strings is that your data structure will be able to grow, without being limited to a fixed size.
For example, consider the following definition:
char str[256];
The string represented by str can store at most 255 characters and the ...