I am writing a program which needs to call another program
to run and get the result.
The functions, system() or exec(), can triggle the other program,
foo.exe to run, however, how to get the return value of it, which is
a char string? (Actually that program just fetches some database info
and display them, so I may re-code it to return a string). I don't want
to write the output into a file then retrive them.
It's under Unix enviroment, and C program. Please help! Thanks!
Jeff