./corewar don't check the extension file .cor
tlenglin opened this issue · comments
tlenglin commented
./corewar don't check the extension file .cor
Emil Wallner commented
@Natansab What's your take on this?
Natan Sabbah commented
if (ft_strlen(e->files[e->player[i].file_pos]) <= 4 ||
strcmp(e->files[e->player[i].file_pos] +
ft_strlen(e->files[e->player[i].file_pos]) - 4,".cor"))
ft_exit(e, 11);
code to check if .cor file
@emilwallner