Formatting a string with an array
Format a string with an array: vsprintf()
The function vsprintf() is similar to sprintf(), the difference is that vsprintf accepts an array of arguments, rather than a variable number of arguments (sprintf).
The format rules are the same for sprintf().