shithub: scc

ref: 279bf67dfc38f55a3c9f4529799686608bd28bb4
dir: /src/libmach/readobj.c/

View raw version
#include <stdio.h>

#include <scc/mach.h>

int
readobj(Obj *obj, FILE *fp)
{
	long off;

	if ((off = ftell(fp)) == EOF)
		return -1;
	obj->pos = off;

	return (*obj->ops->read)(obj, fp);
}