Original Post
I''m planning to write a logger class
I need a function like this :
void Output(char* s, ...)
{
char buffer[256];
wsprintf(buffer, s, ...);
fwrite(buffer, 1, strlen(buffer), file);
}
Use like this :
Output("value = %d ", value);
Output("%d %d %d", int(1), int(2), int(3));
The syntax isn''t correct, of course.
So if somebody knows the right syntax...
Thanx