-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_lstat.c
More file actions
30 lines (27 loc) · 1.11 KB
/
ft_lstat.c
File metadata and controls
30 lines (27 loc) · 1.11 KB
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
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abkssiba <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/27 11:42:05 by abkssiba #+# #+# */
/* Updated: 2019/10/27 13:09:10 by abkssiba ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
t_list *ft_list_at(t_list *begin_list, unsigned int nbr)
{
unsigned int i;
t_list *list;
i = 0;
list = begin_list;
while (list)
{
if (i == nbr)
return (list);
i++;
list = list->next;
}
return (NULL);
}