MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

How to redirect standard output/error of a ucb function to matrixx command window

Is there a way to redirect standard output/error of a ucb function to matrixx command window?

I know that the recommended way is to use stdwrt or XmathDisplay commands. However, we have some
libraries that already exists which uses printf calls and I would like to redirect their output
to the matrixx command window.

Thanks
0 Kudos
Message 1 of 2
(7,648 Views)
Hi,

What you need to do is create a printf function that will print the information into a string, then you can use stdwrt to display it in Xmath.
Then you tell the UCB linking process to compile and link with this version of printf.c
I am including the printf.c that we used to test the function you needed.
Hope this helps.
0 Kudos
Message 2 of 2
(7,635 Views)