all sorts of sorts =3
added specific sort for 3 and 5
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/02/23 13:35:15 by tmaze #+# #+# */
|
||||
/* Updated: 2019/03/08 16:48:26 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/03/09 14:57:41 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -50,10 +50,10 @@ int read_ops(t_psdata *data)
|
||||
buff = NULL;
|
||||
while ((ret = get_next_line(0, &buff)) > 0)
|
||||
{
|
||||
ft_printf("'%s'\n", buff);
|
||||
if (ft_strlen(buff) > 4 || !is_op(buff) || (nop = ft_lstnew(buff, 4)) == NULL)
|
||||
{
|
||||
ft_putendl_fd("Error", 2);
|
||||
ft_printf("'%s' %d %d %d\n", buff, ft_strlen(buff) > 4, !is_op(buff), nop == NULL);
|
||||
ft_putendl_fd("Error 2", 2);
|
||||
return (1);
|
||||
}
|
||||
ft_lstaddend(&(data->op), nop);
|
||||
|
||||
Reference in New Issue
Block a user