Above code works fine for following fprintf calls (that pass variable
argument list to fprintf) -
fprintf (stdout,"This is a variable argument message - %s\n", "Rahul Jain");
However, for following fprintf call (that is not taking any variable
arguments), it seems fprintf from libgcc is getting picked up as then print
comes on the screen instead of our Graphical interface window -
fprintf (stdout,"This is a variable argument message - Rahul Jain\n");
I am not sure why this is happening. Is fprintf implemented as macro, such
that it is working for case1 and not for case2. Can anybody help.