From a55f16b240a61dbea25f678166d0b9e98e8d78a3 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 21 Apr 2020 17:56:16 +0200 Subject: Messy echo --- src/ft_u_utils.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/ft_u_utils.c (limited to 'src/ft_u_utils.c') diff --git a/src/ft_u_utils.c b/src/ft_u_utils.c new file mode 100644 index 0000000..f5df2f4 --- /dev/null +++ b/src/ft_u_utils.c @@ -0,0 +1,26 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_u_utils.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include + +uint64_t + ft_get_argc(const char *args[]) +{ + uint64_t argc; + + argc = 0; + while (args[argc]) + { + argc++; + } + return (argc); +} -- cgit v1.2.3