You need to allocate memory for your new 'string' (keep in mind that it is only a character array!). Alternatively, you can use the C++ 'string' class, much slower (CPU wise, maybe not human wise), but much less book keeping.

Obviously you are from another language! C and to a lesser extent C++ doesn't hold your hand like a lot of other languages, you have to do the dirty work yourself. I am sure there are libraries out there that could help you, but then you have to find, compile and link to use.

If you want to put your data into a structure (it sort of looks like that to me), you will have to either define a class (C++) or a structure (either), then copy the bits into the structure. You can have numeric as well as string (and even date) data in a structure. If you create a class, you can have a 'print' method to dump the data back out.

This is non-trivial development in C, perhaps you should consider why you want to use C instead of another language.