This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

printf function override question?



Hi,

I read online and figured that the way to reroute the printf() output is by overriding the fputc() function.

int fputc(int character, FILE *f)

but where should i point *f?

Thanks

Aaditya