home *** CD-ROM | disk | FTP | other *** search
- /*
- **
- ** This software is Copyright (c) 1989 by Kent Landfield.
- **
- ** Permission is hereby granted to copy, distribute or otherwise
- ** use any part of this package as long as you do not try to make
- ** money from it or pretend that you wrote it. This copyright
- ** notice must be maintained in any copy made.
- **
- **
- ** History:
- ** Creation: Tue Feb 21 08:52:35 CST 1989 due to necessity.
- **
- */
- #ifndef lint
- static char SID[] = "@(#)efopen.c 1.1 6/1/89";
- #endif
-
- #include <stdio.h>
-
- extern FILE *errfp;
-
- FILE *efopen(file,mode)
- char *file, *mode;
- {
- FILE *fp;
- FILE *fopen();
- void exit();
-
- if ((fp = fopen (file, mode)) == NULL) {
- (void) fprintf (errfp, "Can't open file %s\n", file);
- exit(1);
- }
- return (fp);
- }
-