This commit is contained in:
Jeremy FLEURY
2019-07-17 11:22:24 +02:00
commit 748d10f4f3
174 changed files with 8953 additions and 0 deletions

20
srcs/srcs_vm/check_args.c Normal file
View File

@@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* check_args.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/05/22 13:34:11 by tmaze #+# #+# */
/* Updated: 2019/05/22 13:41:20 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "corewar.h"
int check_file(char *path)
{
char *ext;
return (path && (ext = ft_strrchr(path, '.')) && ft_strequ(ext, ".cor"));
}