分类: C/C++
2007-04-24 00:35:01
/* * Print A Match String's Information */ void PrintMatch (ACSM_PATTERN * pattern,ACSM_PATTERN * mlist, int nline,int index) { /* Count the Each Match Pattern */ ACSM_PATTERN *temp = pattern; for (;temp!=NULL;temp=temp->next) { if (!strcmp(temp->patrn,mlist->patrn)) { temp->nmatch++; } } if(mlist->nocase) fprintf (stdout, "Match KeyWord %s at %d line %d char\n", mlist->patrn,nline,index); else fprintf (stdout, "Match KeyWord %s at %d line %d char\n", mlist->casepatrn,nline,index); } |