1: /* 2: * Copyright (c) 1980 Regents of the University of California. 3: * All rights reserved. The Berkeley software License Agreement 4: * specifies the terms and conditions for redistribution. 5: * 6: * @(#)abort_.c 5.1 6/7/85 7: */ 8: 9: #include <stdio.h> 10: 11: #if pdp11 12: abort_() 13: { 14: fprintf(stderr, "Fortran abort routine called\n"); 15: f77_abort(0); 16: } 17: #else vax 18: abort_(msg,len) 19: char *msg; int len; 20: { 21: fprintf(stderr, "abort: "); 22: if (nargs()) while (len-- > 0) fputc(*msg++, stderr); 23: else fprintf(stderr, "called"); 24: fputc('\n', stderr); 25: f77_abort(0); 26: } 27: #endif vax