"v4vijayakumar" <> wrote:
# is there any standard way to extract output from system(3) function?
You have to save the output to a file within the command line,
and then open the file subsequently.
For example on unix, you can do something like
if (system("cat gloober/* >fripper")!=0) error(...);
FILE *fripper = fopen("fripper","r");
...
fclose(fripper);
POSIX systems also provide popen/pclose.
FILE *fripper = popen("cat gloober/*","r");
...
if (pclose(fripper)!=0) error(...);
--
SM Ryan
http://www.rawbw.com/~wyrmwif/
But I do believe in this.