|
|
researchv9-SUN3(old)
#include <stdio.h>
#include "filehdr.h"
#include "scnhdr.h"
#include "ldfcn.h"
int
ldnlseek(ldptr, sectname)
LDFILE *ldptr;
char *sectname;
{
extern int ldnshread( );
extern int fseek( );
SCNHDR shdr;
if (ldnshread(ldptr, sectname, &shdr) == SUCCESS) {
if (shdr.s_nlnno != 0) {
if (FSEEK(ldptr, shdr.s_lnnoptr, BEGINNING) == OKFSEEK) {
return(SUCCESS);
}
}
}
return(FAILURE);
}
static char ID[ ] = "@(#) ldnlseek.c: 1.1 1/7/82";
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.