scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <stdio.h>
 2
 3#include <scc/mach.h>
 4
 5#include "libmach.h"
 6
 7int
 8objpos(Obj *obj, FILE *fp, long pos)
 9{
10	if (fseek(fp, obj->pos, SEEK_SET) == EOF)
11		return 0;
12	if (fseek(fp, pos, SEEK_CUR) < 0)
13		return 0;
14	return 1;
15}