#include /* fcs header */ #DEFINE INLUN1 1 /* lun for fdbin1 */ #DEFINE EOF -10 /* end of file status */ #define RECSIZ 132 /* size of the largest record */ int fdbin1[ SFDBW ] = {0}; /* fdb for file .stb file */ char outbuf[RECSIZ] = {0}; /* input file buffer */ int riob[2] = {0}; /* record i/o status block */ struct { int type; struct { long nam; int filler; int adr; } symbol[20]; } stbbuf = {0}; char *fil = "RSX11M.STB"; /* parsed file name */ char *dev = "LB:"; /* parsed device name */ char *uic = "[1,54]"; /* parsed uic */ int *find_r( ss) char *ss; { int status; union{ int shrt[2]; long lng; }s; int adr= 0 ; /* address of the symbol found */ register int i, j; /* asorted loop and index counters */ filopn ( fdbin1, dev, uic, fil, INLUN1, FCSEQIO+FCROACC, NOFOB ); i = lenstr( ss); s.lng = 0l; j = (i>3) ? 3 : i; s.shrt[0] = rad50(ss,j); if((i = i-3) >0 ) s.shrt[1] = rad50( ss+3,i); while ( getrec ( fdbin1, &stbbuf, 132, riob ) != EOF ) { i = (riob[1]- 2)/ 8; /* loop count */ if ( stbbuf.type != 1 ) continue; for ( j=0; j