fgets(procstat,299,stat_file); i=0; while(i<10) { tag_parent[0] = strtok(procstat,space); i++; if(i>3 && i<7) { status.position_deep_=0; strcpy(status.tag_parent,"xxx"); strcpy(status.tag_child,"\0"); strcpy(status.tag_child_in,"\0"); strcpy(status.tag_parent_in,tag_parent[0]); AddNewBranch(status,proces); } }