summaryrefslogtreecommitdiffstats
path: root/src/ft_u_utils.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 17:56:16 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 17:56:16 +0200
commita55f16b240a61dbea25f678166d0b9e98e8d78a3 (patch)
treeb867c50fc60b09f862ed6fc71faa03159de65087 /src/ft_u_utils.c
parentGood so far (diff)
download42-minishell-a55f16b240a61dbea25f678166d0b9e98e8d78a3.tar.gz
42-minishell-a55f16b240a61dbea25f678166d0b9e98e8d78a3.tar.bz2
42-minishell-a55f16b240a61dbea25f678166d0b9e98e8d78a3.tar.xz
42-minishell-a55f16b240a61dbea25f678166d0b9e98e8d78a3.tar.zst
42-minishell-a55f16b240a61dbea25f678166d0b9e98e8d78a3.zip
Messy echo
Diffstat (limited to 'src/ft_u_utils.c')
-rw-r--r--src/ft_u_utils.c26
1 files changed, 26 insertions, 0 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */
+/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */
+/* */
+/* ************************************************************************** */
+
+#include <stdint.h>
+
+uint64_t
+ ft_get_argc(const char *args[])
+{
+ uint64_t argc;
+
+ argc = 0;
+ while (args[argc])
+ {
+ argc++;
+ }
+ return (argc);
+}