This is my first post and it is a reply to a old one but if its any help to anyone it can be done quite simply
include the following if it isnt allready
#include <stdio.h>
#include <stdarg.h>
then create a function simular to the following
void formattedtext (char *Text, ...)
{
va_list ap; //Holds list of variables
}