updating get demand name and write demands

Everything passing locally
This commit is contained in:
michaeltryby
2019-04-22 12:14:33 -04:00
parent 97f70e445d
commit d34ac67172
2 changed files with 31 additions and 29 deletions

View File

@@ -2873,6 +2873,8 @@ int DLLEXPORT EN_getdemandname(EN_Project p, int nodeIndex, int demandIndex,
free(temp);
}
}
else return 253;
return 0;
}

View File

@@ -152,10 +152,10 @@ void write_demands(Project *pr, FILE *f) {
fprintf(f, "\n%s %-31s", s, s1);
//if (temp = get_category_name(lnode)) {
// fprintf(f, " ;%s", temp);
// free(temp);
//}
if (temp = get_category_name(lnode)) {
fprintf(f, " ;%s", temp);
free(temp);
}
}
}
}