mirror of
https://github.com/Savapitech/42sh.git
synced 2026-01-19 17:47:21 +01:00
18 lines
258 B
C
18 lines
258 B
C
/*
|
|
** EPITECH PROJECT, 2024
|
|
** Semester_1
|
|
** File description:
|
|
** my_array_len
|
|
*/
|
|
#include <unistd.h>
|
|
|
|
int my_array_len(char **tab)
|
|
{
|
|
int count = 0;
|
|
|
|
if (tab == NULL)
|
|
return count;
|
|
for (; tab[count] != NULL; count++);
|
|
return count;
|
|
}
|