aboutsummaryrefslogtreecommitdiff
path: root/bsq/srcs/parse.c
blob: 8c4af3a817f86c3bc5f0d615ef887f7cb49c428f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   parse.c                                            :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: cacharle <charles.cabergs@gmail.com>       +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2019/07/19 15:23:43 by cacharle          #+#    #+#             */
/*   Updated: 2019/07/19 15:55:31 by cacharle         ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "include.h"

t_bool check_input(char *input)
{
	char *line;
	int		i;

	i = 0;
	while (input[i] != '\n')
		i++;
	if (i < 4)
		return (FALSE);
	parsed.fill = input[i--];
	parsed.obstacle = input[i--];
	parsed.empty = input[i--];
	// parsed.size = // atoi smth
	while (*input != '\n')
		input++;
	i = 0;
	while (input[i])
	{
		while (input[i] != '\n')
		{

		}
		if (i != parsed.size


	}
}