Nearly there !!!

WIP merge sort
still problems with negative numbers
This commit is contained in:
Tanguy MAZE
2019-03-06 12:12:00 +01:00
parent ac9b03acff
commit 428525b561
6 changed files with 114 additions and 36 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/22 14:41:27 by tmaze #+# #+# */
/* Updated: 2019/03/02 15:23:43 by tmaze ### ########.fr */
/* Updated: 2019/03/06 11:37:06 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -61,12 +61,10 @@ t_stack *ps_stkpop(t_psdata *data, char c)
s = &(data->a);
if (c == 'a')
size = &(data->size_a);
if (c == 'b')
else if (c == 'b')
s = &(data->b);
if (c == 'b')
size = &(data->size_b);
else if (c != 'a' && c != 'b')
return (NULL);
ret = NULL;
if (s != NULL && *s != NULL)
{