files.c 393 B

12345678910111213141516171819202122
  1. /* $Id$ */
  2. /*
  3. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  4. * See the copyright notice in the ACK home directory, in the file "Copyright".
  5. */
  6. /* S H A R E D F I L E
  7. *
  8. * F I L E S . C
  9. */
  10. #include <stdio.h>
  11. FILE *openfile(name,mode)
  12. char *name,*mode;
  13. {
  14. FILE *f;
  15. if ((f = fopen(name,mode)) == NULL) {
  16. error("cannot open %s",name);
  17. }
  18. return f;
  19. }