plop lol
This commit is contained in:
Tanguy MAZE 2019-03-19 17:47:05 +01:00
parent 337fb1ad2f
commit 3c4dbf912b
3 changed files with 4 additions and 5 deletions

2
libft

@ -1 +1 @@
Subproject commit 3a868c06021e57cc062e6aa1f3357242bb5c6477 Subproject commit 699dcef577c9f99883081e820429ff8f009bbf7f

View File

@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */ /* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/23 13:35:15 by tmaze #+# #+# */ /* Created: 2019/02/23 13:35:15 by tmaze #+# #+# */
/* Updated: 2019/03/19 13:41:54 by tmaze ### ########.fr */ /* Updated: 2019/03/19 16:44:06 by tmaze ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -77,7 +77,6 @@ int read_ops(t_psdata *data)
ft_bzero(tmp, 4); ft_bzero(tmp, 4);
while ((ret = ft_getline(&buff)) > 0) while ((ret = ft_getline(&buff)) > 0)
{ {
ft_printf("=== debug ===\nbuff: '%s'\n", buff);
ft_strncpy(tmp, buff, 3); ft_strncpy(tmp, buff, 3);
if (ft_strlen(buff) > 4 || !is_op(buff) if (ft_strlen(buff) > 4 || !is_op(buff)
|| (nop = ft_lstnew(tmp, 4)) == NULL) || (nop = ft_lstnew(tmp, 4)) == NULL)

View File

@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */ /* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/03 11:41:49 by tmaze #+# #+# */ /* Created: 2019/03/03 11:41:49 by tmaze #+# #+# */
/* Updated: 2019/03/19 14:51:40 by tmaze ### ########.fr */ /* Updated: 2019/03/19 15:24:24 by tmaze ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -19,7 +19,7 @@ void print_ops(t_psdata *data)
it = data->op; it = data->op;
while (it) while (it)
{ {
ft_printf("%s\n", it->content); ft_putendl(it->content);
it = it->next; it = it->next;
} }
} }