C++ system() function — How to collect the output of the issued command?

前端 未结 8 1671
暖寄归人
暖寄归人 2020-12-03 16:14

I\'m running some commands with the C++ system() function:

int system ( const char * command );

How can I collect the standard

8条回答
  •  时光取名叫无心
    2020-12-03 16:43

    system() is declared and defined in libc. You can either read the first link I provided, or do man system at a command prompt in your shell.

提交回复
热议问题