Example #1
0
int	main(int argc, char **argv)
{
	t_tetri tab[26];
	t_map	*map;
	int		coor[2];

	if (argc != 2)
		ft_usage();
	coor[0] = 10;
	coor[1] = 0;
	ft_check_and_parse(argv, tab, 'A', coor);
	map = ft_create_tab(tab);
	ft_recursive(map, tab);
	return (0);
}
Example #2
0
File: ft_fdf.c Project: hqro/Fdf
int			main(int argc, char *argv[])
{
	char	*str;
	int		ver[2];
	int		length;
	int		width;
	int		**val;

	if (ft_start(argc, argv, &str, ver) == 0)
		return (-1);
	if ((val = ft_create_tab(&str, &length, &width)) == NULL)
	{
		ft_putstr(argv[1]);
		ft_putstr(": Incorrect value in file\n");
		return (0);
	}
	ft_init(val, length, width);
	return (0);
}