-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.c
More file actions
28 lines (26 loc) · 1.31 KB
/
Copy patherror.c
File metadata and controls
28 lines (26 loc) · 1.31 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
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* error.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hbani-at <hbani-at@student.42amman.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/11 16:21:16 by hbani-at #+# #+# */
/* Updated: 2026/05/07 22:49:03 by hbani-at ### ########.fr */
/* */
/* ************************************************************************** */
#include "include/execution.h"
void print_error(t_error error)
{
if (error == ERROR_SUCCESS)
return ;
ft_putstr_fd("Error\n", 2);
if (error == ERROR_INVALID_ARGS)
ft_putstr_fd("Invalid number of arguments\n", 2);
if (error == ERROR_INVALID_PID)
ft_putstr_fd("Invalid PID\n", 2);
if (error == ERROR_INVALID_KILL)
ft_putstr_fd("Failed to send signal\n", 2);
if (error == ERROR_MEMORY)
ft_putstr_fd("Memory allocation failed\n", 2);
}