From 487a66394061f2d14a2fa421302966b5442d643f Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 27 Jul 2020 18:55:07 +0200 Subject: I couldn't see shit --- src/u_utils.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/u_utils.c (limited to 'src/u_utils.c') diff --git a/src/u_utils.c b/src/u_utils.c new file mode 100644 index 0000000..c95cbb0 --- /dev/null +++ b/src/u_utils.c @@ -0,0 +1,28 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* 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 +#include +#include + +uint64_t + get_argc(const char *args[]) +{ + uint64_t argc; + + argc = 0; + while (args[argc]) + { + argc++; + } + return (argc); +} -- cgit v1.2.3 From 3b32afb082ba823885ac355413294b5e7ff3c360 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 3 Aug 2020 17:04:30 +0200 Subject: Changed function name --- src/u_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/u_utils.c') diff --git a/src/u_utils.c b/src/u_utils.c index c95cbb0..20c5cfc 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -15,7 +15,7 @@ #include uint64_t - get_argc(const char *args[]) + u_builtins_get_argc(const char *args[]) { uint64_t argc; -- cgit v1.2.3