Hi,
I need a 'wrapper' function for printf. So that anywhere in my program
if i call the wrapper function it does the same thing as the regular
printf function, but puts a custom message at the begining.
so here it goes :-
int my_printf ( <what do I put here> )
{
printf("This is My Header::");
printf( <Pass the arguments of the my_printf right here>);
}
and in some where in my main pgm files;
my_printf("This is a test %d, %x, %s.\n", 10, 10, "10");
should do exactly as printf does, except put "This is My Header::" at
the begining.
Please help!
Thanks