24 CHARS c_wild[256],c_test[256];
25 CHARS *pc_h,*pc_n,*pc_w,*pc_s;
26 strncpy(c_wild,pc_wild,
sizeof(c_wild));
27 strncpy(c_test, pc_test,
sizeof(c_test));
35 while(*pc_w==
'*'){pc_w++;
if(*pc_w==0)
return MATCH;}
37 while((*pc_h!=
'*')&(*pc_h!=0))pc_h++;
42 if(strlen(pc_s) < l_len)
return NOMATCH;
43 pc_s=(
CHARS *)&c_test[l_test-l_len];
49 if((pc_n=(
CHARS *)strstr(pc_s,pc_w))==NULL)
return NOMATCH;
56 if((*pc_w!=
'%') & (*pc_w!=*pc_s))
return NOMATCH;
58 if((*pc_s==0)&(*pc_w==0))
return MATCH;
61 if((*pc_w==
'*') & (*(pc_w+1)==0))
return MATCH;
INTS4 f_ut_wild(CHARS *pc_test, CHARS *pc_wild)