Annotation of 41BSD/lib/libF77/subout.c, revision 1.1

1.1     ! root        1: #include <stdio.h>
        !             2: 
        !             3: subout(varn, offset, procn, line)
        !             4: char *varn, *procn;
        !             5: long int offset;
        !             6: int line;
        !             7: {
        !             8: register int i;
        !             9: 
        !            10: fprintf(stderr, "Subscript out of range on line %d of procedure ", line);
        !            11: for(i = 0 ; i < 8 && *procn!='_' ; ++i)
        !            12:        putc(*procn++, stderr);
        !            13: fprintf(stderr, ".\nAttempt to access the %ld-th element of variable ", offset+1);
        !            14: for(i = 0 ; i < 6  && *varn!=' ' ; ++i)
        !            15:        putc(*varn++, stderr);
        !            16: fprintf(stderr, ".\n");
        !            17: _cleanup();
        !            18: abort();
        !            19: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.