shithub: scc

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