getoid.c

tmi2_fluffos_v2/lib/adm/simul_efun/getoid.c · 162 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

int
getoid(object obj)
{
	string name, dummy;
	int oid;

	if (!obj) {
		return -1;
	}
	name = file_name(obj);
	sscanf(name, "%s#%d", dummy, oid);
	return oid;
}

Site Stats

Snippets: 1791
Codebases: 571