How should I run another program from within my C program? I need to be able to write data into STDIN of the launched program (and maybe read from
C
STDIN
I think you can use
freopen
for this .