summary refs log tree commit diff
path: root/popen2.h
diff options
context:
space:
mode:
Diffstat (limited to 'popen2.h')
-rw-r--r--popen2.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/popen2.h b/popen2.h
index 1805632..f0de0a3 100644
--- a/popen2.h
+++ b/popen2.h
@@ -0,0 +1,17 @@
+#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