-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfind_pursuit.c
24 lines (21 loc) · 1.05 KB
/
find_pursuit.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_atoi.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: enoye <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/13 10:12:37 by enoye #+# #+# */
/* Updated: 2021/10/17 10:10:35 by enoye ### ########.fr */
/* */
/* ************************************************************************** */
#include "libpushswap.h"
int *find_pursuit(int content, int *sort_arr)
{
int *pursuit;
pursuit = sort_arr;
while (content != *pursuit)
pursuit++;
pursuit++;
return (pursuit);
}