#include "./parsing_private.h" static int name_check(const char *path) { size_t len; len = ft_strlen(path); if (len < 4) { ft_eprintf("map error: name doesn't finished by .cub"); return (1); } if (ft_strcmp(".cub", path + len - 3) != 0) { ft_eprintf("map error: name doesn't finished by .cub"); return (1); } return (1); } int parsing_meta(const char *path) { return (name_check(path)); }