-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelpers.c
26 lines (23 loc) · 1.04 KB
/
helpers.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
/* ************************************************************************** */
/* */
/* :::::::: */
/* helpers.c :+: :+: */
/* +:+ */
/* By: cschuijt <[email protected]> +#+ */
/* +#+ */
/* Created: 2022/11/12 21:26:40 by cschuijt #+# #+# */
/* Updated: 2022/11/12 21:26:40 by cschuijt ######## odam.nl */
/* */
/* ************************************************************************** */
#include "so_long.h"
char *last_string_in_array(char **array)
{
size_t i;
i = 0;
if (!array[i])
return (NULL);
while (array[i])
i++;
i--;
return (array[i]);
}