From c13f32bf42aceccd87a16dab0fdeebfba8a3e2f9 Mon Sep 17 00:00:00 2001 From: Tom Moron Date: Sat, 3 Feb 2024 19:09:54 +0100 Subject: [PATCH] j'aime bien readline --- main.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index de67ec7..9c42889 100644 --- a/main.c +++ b/main.c @@ -6,13 +6,22 @@ /* By: tomoron +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/02/02 21:59:20 by tomoron #+# #+# */ -/* Updated: 2024/02/02 22:12:38 by tomoron ### ########.fr */ +/* Updated: 2024/02/03 19:08:04 by tomoron ### ########.fr */ /* */ /* ************************************************************************** */ #include +#include +#include int main(void) { - printf("un super minishell\n"); + char *res; + + res = (char *)1; + while(res) + { + res = readline("minishell $>"); + printf("%s\n",res); + } }