int dircmp(char* s1, char* s2) { int j, i; char temp1[MAXLEN], temp2[MAXLEN]; for (j = 0, i = 0; j < strlen(s1); ++j) if (isalnum(s1[i]) || isspace(s1[i]) || s1[j] == '\0') temp1[i++] = s1[j]; for (j = 0, i = 0; j < strlen(s2); ++j) if (isalnum(s2[i]) || isspace(s2[i]) || s2[j] == '\0') temp2[i++] = s2[j]; return((primary_sort & FOLD) ? foldcmp(temp1, temp2) : strcmp(temp1, temp2)); }
static struct AclEntry * FindList(struct AclEntry *a_alist, char *a_name) { /*FindList */ while (a_alist) { if (!foldcmp(a_alist->name, a_name)) return (a_alist); a_alist = a_alist->next; } return (0); } /*FindList */