shithub: scc

ref: 5750587d1344416e2a6d6ee1395e250558de97ac
dir: /src/libmach/namindex.c/

View raw version
#include <stdio.h>

#include <scc/mach.h>

#include "libmach.h"

extern namidxfun_t namidxv[];

char *
namindex(int type)
{
	int fmt;
	namidxfun_t fn;

	fmt = FORMAT(type);
	if (fmt >= NFORMATS)
		return NULL;
	fn = namidxv[fmt];
	return (*fn)();
}