int xlate(const char *s)
{
struct entry
{
const char *s;
int v;
};
static const entry xtab[] =
{
{ ..., ... },
...
{ ..., ... }
};
/*
* convert s to int by table lookup using xtab
*/
}
/* End of File */