summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 14:51:45 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 14:51:45 +0200
commitc9e4fb6e2ad07e13cf41d6ce6afad30b04011765 (patch)
tree74d816c107c959315ae52166dac96fe2fe0c2a5e /src/main.c
parentWell well well that wasn't too bad, now remake everything (diff)
download42-minishell-c9e4fb6e2ad07e13cf41d6ce6afad30b04011765.tar.gz
42-minishell-c9e4fb6e2ad07e13cf41d6ce6afad30b04011765.tar.bz2
42-minishell-c9e4fb6e2ad07e13cf41d6ce6afad30b04011765.tar.xz
42-minishell-c9e4fb6e2ad07e13cf41d6ce6afad30b04011765.tar.zst
42-minishell-c9e4fb6e2ad07e13cf41d6ce6afad30b04011765.zip
Solid base
Diffstat (limited to '')
-rw-r--r--src/main.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/main.c b/src/main.c
deleted file mode 100644
index beafbb5..0000000
--- a/src/main.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* ************************************************************************** */
-/* LE - / */
-/* / */
-/* main.c .:: .:/ . .:: */
-/* +:+:+ +: +: +:+:+ */
-/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */
-/* #+# #+ #+ #+# */
-/* Created: 2019/10/29 08:47:37 by rbousset #+# ## ## #+# */
-/* Updated: 2019/10/29 08:47:39 by rbousset ### #+. /#+ ###.fr */
-/* / */
-/* / */
-/* ************************************************************************** */
-
-#include <libft.h>
-#include <minishell.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <stdint.h>
-#include <unistd.h>
-
-int
-main(int argc,
- const char *argv[],
- const char *envp[])
-{
- char *arg;
- int8_t gnlret;
-
- (void)argc;
- (void)argv;
- (void)envp;
- ft_printf(FT_PS1);
- while ((gnlret = get_next_line(STDIN_FILENO, &arg)) > 0)
- {
- ft_process_arg(arg);
- ft_memdel((void*)&arg);
- ft_printf(FT_PS1);
- }
- free(arg);
- return (0);
-}