-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_list_get.c
26 lines (23 loc) · 1.04 KB
/
ft_list_get.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_list_get.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: stales <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/21 00:53:37 by stales #+# #+# */
/* Updated: 2022/03/27 21:39:53 by stales ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
t_list *ft_list_get(t_list *list, t_uint32 index)
{
t_uint32 i;
i = 0;
while (list && i != index)
{
list = list->next;
i++;
}
return (list);
}