ipc - In **portable C**, how to launch a command connecting the command's stdin to the launcher's stdout? -


in c program (p1), how launch dynamically constructed command (and arguments) reads standard input p1's standard output?

note that:

  1. a method other stdout --> stdin piping ok provided portable across windows , linux.

  2. i cannot use c++, java, perl, ruby, python, etc here.

also, have mingw dependency windows build?

reopened: question below answers linux, question wants portable method. execute program within c program

the microsoft c runtime calls _popen instead of popen, appears have same functionality in windows (for console applications) , linux.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -