-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathread_input.c
23 lines (20 loc) · 1.01 KB
/
read_input.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* read_input.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: emohamed <emohamed@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/30 17:40:23 by emohamed #+# #+# */
/* Updated: 2023/09/18 12:09:10 by emohamed ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
char *read_input(void)
{
char *in;
in = readline("amineoaarab-00$ ");
if (in)
add_history(in);
return (in);
}