/* return path and name of phase */ char * get_full_phase_name (phases_t index) { buffer_t tmp; strcpy(tmp, get_phase_dir(index)); if (strlen(tmp) > 0) { strcat(tmp, "/"); } if (sizeof(EXT_EXE) > 1) { strcat(tmp, get_phase_name(index)); return concat_strings (tmp, EXT_EXE); } else { return concat_strings (tmp, get_phase_name(index)); } }
/* return path and name of phase */ char * get_full_phase_name (phases_t index) { buffer_t tmp; strcpy(tmp, get_phase_dir(index)); strcat(tmp, "/"); return concat_strings (tmp, get_phase_name(index)); }