aboutsummaryrefslogtreecommitdiff
path: root/src/util/ft_split_len.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/ft_split_len.c')
-rw-r--r--src/util/ft_split_len.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/util/ft_split_len.c b/src/util/ft_split_len.c
new file mode 100644
index 0000000..090a0c9
--- /dev/null
+++ b/src/util/ft_split_len.c
@@ -0,0 +1,23 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_split_len.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/05/10 20:58:46 by charles #+# #+# */
+/* Updated: 2020/05/10 21:02:08 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft_util.h"
+
+size_t ft_split_len(char **split)
+{
+ size_t count;
+
+ count = 0;
+ while (split[count] != NULL)
+ count++;
+ return (count);
+}