-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_for_red2.c
More file actions
25 lines (23 loc) · 1.1 KB
/
check_for_red2.c
File metadata and controls
25 lines (23 loc) · 1.1 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* check_for_red2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mamoussa <mamoussa@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/12/05 12:43:28 by mamoussa #+# #+# */
/* Updated: 2020/12/09 20:54:44 by mamoussa ### ########.fr */
/* */
/* ************************************************************************** */
#include "shell.h"
void check_for_red2(t_cmd *current)
{
if (g_is_in || g_is_out)
{
current = g_cmd_head;
current = ptr_to_red(current);
current = remove_red(current);
if (current)
add_back_cmd(g_cmd_head, current);
}
}