getcapstr
if ((capstr = getcapstr(capname)) != NULL) {
if ((cap = getcapstr("cr")) == NULL)
if ((cap = getcapstr("ta")) == NULL)