NTYPES
#define NTYPES (sizeof (types) / sizeof (types[0]))
#define NTYPES (sizeof(rtypes) / sizeof(rtypes[0]))