summaryrefslogtreecommitdiffstats
path: root/src/ft_b_echo.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 22:24:25 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 22:24:25 +0200
commitfe24a254415b38952eeef8f0ca4e830549360850 (patch)
treef51808f7ed9ccc7840878de4d1c9d5408c6eaa45 /src/ft_b_echo.c
parentWrong address (diff)
download42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.gz
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.bz2
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.xz
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.zst
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.zip
Pretty good start
Diffstat (limited to '')
-rw-r--r--src/ft_b_echo.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/ft_b_echo.c b/src/ft_b_echo.c
new file mode 100644
index 0000000..f7b83a2
--- /dev/null
+++ b/src/ft_b_echo.c
@@ -0,0 +1,28 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_b_echo.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 <libft.h>
+#include <stdint.h>
+#include "ft_s_struct.h"
+
+int32_t
+ ft_b_echo(char *args[],
+ t_msh *msh)
+{
+ (void)msh;
+ while (*args)
+ {
+ ft_printf("%s\n", *args);
+ args++;
+ }
+ return (0);
+}