is there any way to direct the output from 'printf()' function to the calling environment - namely cmd.exe ?
purpose: I'm writing CLI programs in cvi which works fine for parsing
command line arguments etc... but I would like to have the output from
printf() statements go to the command interpreter (cmd.exe) from which
the program was called, e.g. for use in batch-files, pipe to other
programs etc.
the normal behaviour for printf() is to open a separate window and
display output there, which is pretty much useless in my case.
--
Once the game is over, the king and the pawn go back into the same box.