How to concatenate string and int in C?
Strings are hard work in C. The 12 is enough bytes to store the text “pre_”, the text “_suff”, a string of up to two characters (“99”) and the NULL terminator that goes on the end of C string buffers. This will tell you how to use snprintf, but I suggest a good C book!