Lines Matching refs:dospattern
131 char *dospattern;
144 if ((dospattern = (char *)malloc(j+1)) != NULL) {
145 strcpy(dospattern, pattern);
146 if (!strcmp(dospattern+j-3, "*.*")) {
147 dospattern[j-2] = '\0'; /* nuke the ".*" */
148 } else if (!strcmp(dospattern+j-2, "*.")) {
152 free(dospattern);
155 dospattern[j-1] = '\0'; /* nuke the end "." */
157 j = recmatch((uch *)dospattern, (uch *)string, ignore_case __WDL);
158 free(dospattern);