-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfind_here_pursuit.c
27 lines (24 loc) · 1.1 KB
/
find_here_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
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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"
t_list *find_here_pursuit(t_list **b, int pursuit)
{
t_list *finder;
finder = *b;
while (finder != 0)
{
if (finder -> content == pursuit)
return (finder);
finder = finder -> next;
}
return (0);
}