28 lines
1.1 KiB
C
28 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/02/02 21:59:20 by tomoron #+# #+# */
|
|
/* Updated: 2024/02/03 19:08:04 by tomoron ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <stdio.h>
|
|
#include <readline/readline.h>
|
|
#include <readline/history.h>
|
|
|
|
int main(void)
|
|
{
|
|
char *res;
|
|
|
|
res = (char *)1;
|
|
while(res)
|
|
{
|
|
res = readline("minishell $>");
|
|
printf("%s\n",res);
|
|
}
|
|
}
|