about summary refs log blame commit diff stats
path: root/popen2.h
blob: 1805632399028c612bea3e4dc38b1835f9026893 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                   
#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