mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 08:41:58 +00:00
21 lines
1020 B
C
21 lines
1020 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* compare_value.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/12/10 11:08:35 by mteriier #+# #+# */
|
|
/* Updated: 2025/12/10 11:28:58 by mteriier ### ########lyon.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "push_swap.h"
|
|
|
|
int is_upper_compare(t_stack t1, t_stack t2)
|
|
{
|
|
if (t1->value > t2->value)
|
|
return (1);
|
|
return (0);
|
|
}
|