#include <stdio.h>#include <string.h>#include "struct.h"#include "morph_logger.h"externchar*program_name;externFILE*log_file;#define FUNCTION "cp_to_struct_chk_pdgm()"voidcp_to_struct_chk_pdgm(ch_ar,struct_ar,i,pdgm)charch_ar[100][2000];structlex_infostruct_ar[100];int*i;charpdgm[60];{structlex_info*tag;intj;PRINT_LOG(log_file,"checking for the word in PDGM\n");j=0;while(ch_ar[j][0]!='\0'){tag=(structlex_info*)ch_ar[j];if(!strcmp(tag->pdgm,pdgm)){strcpy(struct_ar[*i].word,tag->word);strcpy(struct_ar[*i].pdgm,tag->pdgm);strcpy(struct_ar[*i].cat,tag->cat);//struct_ar[*i].priority=tag->priority;(*i)++;}j++;}}