- if (ssequal ("atr-", np->n_name)
- && (j = strlen (np->n_name) - plen) > alen
- && *(np->n_name + j) == '-'
- && strcmp (mp->foldpath, np->n_name + j + 1) == 0) {
- cp = getcpy (np->n_name + alen);
+ if (isprefix("atr-", np->n_name)
+ && (j = strlen(np->n_name) - plen) > alen
+ && *(np->n_name + j) == '-'
+ && strcmp(mp->foldpath, np->n_name + j + 1)
+ == 0) {
+ cp = getcpy(np->n_name + alen);