You could use a C character array type string and sprintf(). You might even already include string.h.