-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathabout_readline.c
More file actions
25 lines (22 loc) · 1.08 KB
/
about_readline.c
File metadata and controls
25 lines (22 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* about_readline.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jaesjeon <jaesjeon@student.42seoul.kr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/07 18:52:19 by minsuki2 #+# #+# */
/* Updated: 2022/09/18 07:22:29 by jaesjeon ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell_info.h"
#include "minishell.h"
#include "ft_print.h"
char *my_readline(const char *prompt)
{
char *line;
line = readline(prompt);
if (!line)
exit(get_exit_status());
return (line);
}