shithub: scc

ref: e6a90cd2d996bc93d89c52d6cc0b1b222105568a
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)();
}