Capturing C output to stdout
To redirect
stdout to the Log window, issue the following
command:
SET INTERCEPT ON FILE stdout ;With this SET command,
you will capture not only stdout from your program, but
also from interactive function calls. For example, you can interactively
call printf on the command line to display a null-terminated
string by entering:
printf(sptr); You might find this easier
than using LIST STORAGE.