summaryrefslogtreecommitdiffstats
path: root/src/ft_echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_echo.c')
-rw-r--r--src/ft_echo.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/ft_echo.c b/src/ft_echo.c
deleted file mode 100644
index e8ef75c..0000000
--- a/src/ft_echo.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* ************************************************************************** */
-/* LE - / */
-/* / */
-/* ft_echo.c .:: .:/ . .:: */
-/* +:+:+ +: +: +:+:+ */
-/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */
-/* #+# #+ #+ #+# */
-/* Created: 2019/11/01 18:46:54 by rbousset #+# ## ## #+# */
-/* Updated: 2019/11/01 18:46:55 by rbousset ### #+. /#+ ###.fr */
-/* / */
-/* / */
-/* ************************************************************************** */
-
-#include <libft.h>
-#include <minishell.h>
-#include <inttypes.h>
-
-int
-ft_echo(char **com, uint8_t n)
-{
- uint8_t i;
- int fd;
-
- i = 1;
- fd = 1;
- if (!com[1])
- ft_dprintf(fd, "\n");
- else if (!ft_strncmp(com[1], "-n", ft_strlen(com[1])))
- i = 2;
- while (i < n)
- {
- ft_dprintf(fd, "%s", ft_strtrim(com[i], "\""));
- if (i != n - 1)
- ft_dprintf(fd, " ");
- i++;
- }
- if (ft_strncmp(com[1], "-n", ft_strlen(com[1])))
- ft_dprintf(fd, "\n");
- return (0);
-}