shithub: scc

ref: 3d4872a5f32769876bac1dbe2e2efaa85b864851
dir: /src/libmach/objpos.c/

View raw version
#include <stdio.h>

#include <scc/mach.h>

#include "libmach.h"

int
objpos(Obj *obj, FILE *fp, long pos)
{
	if (fsetpos(fp, &obj->pos))
		return 0;
	if (fseek(fp, pos, SEEK_CUR) < 0)
		return 0;
	return 1;
}