*Solved* Assign buffer values to string

You read up on c-strings (arrays of char) and the available functions for manipulating them. Here are a few references:

https://en.wikibooks.org/wiki/C_Programming/Strings
http://www.cplusplus.com/reference/cstring/