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
}

>This is my first post
All the more reason to take care in following the rules.

>and it is a reply to a old one
Not anymore, I've done what you should have and started a new thread.

>but if its any help to anyone it can be done quite simply
How does that help the fact that you bumped an old thread with an unrelated question?

>include the following if it isnt allready
Please ask a coherent question. We don't do well with fill in the blanks problems.

Are you looking to understand how the variable argument list works ? If so read this ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.