123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef EFREOPEN_SOURCE
- #define EFREOPEN_SOURCE
- #include <stdio.h>
- #include <errno.h>
- #include "../tools/files.h"
- #include "../tools/error.h"
- FILE * efreopen (char const * filename, char const * openmode, FILE * fp)
- {
- if ((fp = freopen (filename, openmode, fp)) == (FILE *) (0))
- {
- error (0, errno, "%s", filename);
- }
- return (fp);
- }
- #endif
|