21 lines
292 B
C
21 lines
292 B
C
#ifndef SAFELIB_H
|
|
#define SAFELIB_H
|
|
|
|
#include <stdio.h>
|
|
|
|
#ifndef STDIN_FILENO
|
|
#define STDIN_FILENO 0
|
|
#endif
|
|
|
|
#ifndef STDOUT_FILENO
|
|
#define STDOUT_FILENO 1
|
|
#endif
|
|
|
|
FILE *safe_popen(char *, const char *);
|
|
void safe_pclose(FILE *fp);
|
|
|
|
#define popen safe_popen
|
|
#define pclose safe_pclose
|
|
|
|
#endif
|