tcoin/popen2.h

19 lines
314 B
C

#ifndef _IXIMIUZ_POPEN2
#define _IXIMIUZ_POPEN2
#include<stdio.h>
//https://github.com/iximiuz/popen2
//https://iximiuz.com/en/posts/how-to-on-processes/
struct files_t {
FILE *in;
FILE *out;
};
struct files_t *popen2(const char *command);
int pclose2(struct files_t *fp);
#endif // _IXIMIUZ_POPEN2