emilwallner / Corewar

A reproduction of the Core War game. Assembly compiler, Virtual Machine and GUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

./corewar don't check the extension file .cor

tlenglin opened this issue · comments

./corewar don't check the extension file .cor

@Natansab What's your take on this?

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