pclose (3) Linux Manual Page
popen, pclose – pipe stream to or from a process Synopsis #include <stdio.h> FILE *popen(const char *command, const char *type); int pclose(FILE *stream); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): popen(), pclose(): _POSIX_C_SOURCE >= 2 || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE Description The popen() function opens a process by creating a pipe, forking, and invoking the shell. Since a…
