Fixed imagined bug in subject pattern match about
[unix-history] / .ref-BSD-3 / usr / src / libF77 / subout.c
CommitLineData
0ee0e326
BJ
1#include <stdio.h>
2
3subout(varn, offset, procn, line)
4char *varn, *procn;
5long int offset;
6int line;
7{
8register int i;
9
10fprintf(stderr, "Subscript out of range on line %d of procedure ", line);
11for(i = 0 ; i < 8 && *procn!='_' ; ++i)
12 putc(*procn++, stderr);
13fprintf(stderr, ".\nAttempt to access the %ld-th element of variable ", offset+1);
14for(i = 0 ; i < 6 && *varn!=' ' ; ++i)
15 putc(*varn++, stderr);
16fprintf(stderr, ".\n");
17_cleanup();
18abort();
19}