29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* signal.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/03/28 15:59:01 by cchauvet #+# #+# */
|
|
/* Updated: 2023/04/05 15:05:11 by alouis-j ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "signal_private.h"
|
|
|
|
void ft_ctrlc(int num)
|
|
{
|
|
(void) num;
|
|
rl_replace_line("", 0);
|
|
rl_on_new_line();
|
|
ft_putchar_fd('\n', 1);
|
|
rl_redisplay();
|
|
}
|
|
|
|
void ft_quit(int num)
|
|
{
|
|
(void) num;
|
|
ft_printf("Quit (core dumped)\n");
|
|
}
|