ack/util/ego/share/files.c

23 lines
393 B
C
Raw Normal View History

1994-06-24 11:31:16 +00:00
/* $Id$ */
1987-03-09 19:15:41 +00:00
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
1984-11-26 15:04:22 +00:00
/* S H A R E D F I L E
*
* F I L E S . C
*/
#include <stdio.h>
FILE *openfile(name,mode)
char *name,*mode;
{
FILE *f;
if ((f = fopen(name,mode)) == NULL) {
error("cannot open %s",name);
}
return f;
}