This commit is contained in:
kinou-p 2022-03-06 17:02:38 +01:00
parent 287b1178fd
commit bb3c586aae
2 changed files with 9 additions and 3 deletions

View File

@ -6,7 +6,7 @@
# By: apommier <apommier@student.42.fr> +#+ +:+ +#+ # # By: apommier <apommier@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2022/03/06 12:50:24 by apommier #+# #+# # # Created: 2022/03/06 12:50:24 by apommier #+# #+# #
# Updated: 2022/03/06 16:02:30 by apommier ### ########.fr # # Updated: 2022/03/06 16:59:33 by apommier ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -15,7 +15,7 @@ NAME = minishell
SRCS = main.c SRCS = main.c
OBJS = ${SRCS:.c=.o} OBJS = ${SRCS:.c=.o}
CC = gcc CC = gcc
CFLAGS = -Wall -Wextra #CFLAGS = -Wall -Wextra
LIB = -lreadline LIB = -lreadline
#CFLAGS = -Wall -Wextra -Werror #CFLAGS = -Wall -Wextra -Werror
RM = rm -rf RM = rm -rf

8
main.c
View File

@ -6,7 +6,7 @@
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */ /* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/06 13:27:11 by apommier #+# #+# */ /* Created: 2022/03/06 13:27:11 by apommier #+# #+# */
/* Updated: 2022/03/06 13:31:54 by apommier ### ########.fr */ /* Updated: 2022/03/06 17:01:22 by apommier ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -14,6 +14,12 @@
int main(int ac, char **av, char **path) int main(int ac, char **av, char **path)
{ {
char *input;
printf("---MINISHELL START---\n"); printf("---MINISHELL START---\n");
while (1);
{
input = readline("$-");
}
return (0); return (0);
} }