Add fork_exec() function

Can be used to execute an external program. Provides the possibility to
optionally create a pipe to the new process.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-07-01 15:25:10 +02:00
parent 003431880e
commit 6e2b00096d
2 changed files with 72 additions and 0 deletions

View File

@@ -879,6 +879,7 @@ int parse_date (char *, enum datefmt, int *, int *, int *,
void str_toupper (char *);
void file_close (FILE *, const char *);
void psleep (unsigned);
int fork_exec (int *, int *, const char *, char *const *);
/* vars.c */
extern int col, row;