hastype
if (hastype(nt, tv, 'J'))
if (hastype(nt, tv, 'B'))
if (hastype(nt, tv, 'R'))
if (hastype(nt, tv, 'G'))
if (hastype(nt, tv, 'I'))
if (hastype(nt, tv, 'M'))
int hastype(int, char *[], char);