Beispiel #1
0
void	ft_union(char *s1, char *s2)
{
	char	*tmp;

	tmp = s1;
	while (*s1)
	{
		if (!ft_is_before(s1, tmp, *s1))
			write(1, s1, 1);
		s1++;
	}
	while (*s2)
	{
		if (!ft_is_in(tmp, *s2))
			write(1, s2, 1);
		s2 = ft_erase(s2, *tmp);
		s2++;
	}
	write(1, "\n", 1);
}
Beispiel #2
0
void	ft_nocolor(t_graph *graph)
{
	graph->nope = 1;
	ft_erase(graph);
}
Beispiel #3
0
void	ft_white(t_graph *graph)
{
	graph->set = 0;
	graph->nope = 0;
	ft_erase(graph);
}
Beispiel #4
0
void	ft_green(t_graph *graph)
{
	graph->set = 3;
	graph->nope = 0;
	ft_erase(graph);
}
Beispiel #5
0
void	ft_red(t_graph *graph)
{
	graph->set = 5;
	graph->nope = 0;
	ft_erase(graph);
}
Beispiel #6
0
void	ft_blue(t_graph *graph)
{
	graph->set = 1;
	graph->nope = 0;
	ft_erase(graph);
}