actually it's not =(

This commit is contained in:
Tanguy MAZE
2019-03-18 17:38:27 +01:00
parent e0f584fd30
commit 0b3ba46116
6 changed files with 19 additions and 8 deletions

View File

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