summaryrefslogtreecommitdiffstats
path: root/src/p_redirs.h
blob: db75cfbc2431dc057d0af6a3c3c71a177d784de2 (plain)
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
29
30
31
32
33
34
/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   p_redirs.h                                         :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: rbousset <marvin@42.fr>                    +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2020/02/14 17:19:27 by rbousset          #+#    #+#             */
/*   Updated: 2020/02/14 17:19:29 by rbousset         ###   ########lyon.fr   */
/*                                                                            */
/* ************************************************************************** */

#ifndef P_REDIRS_H
#define P_REDIRS_H

#include <stdint.h>

#include "s_struct.h"

enum	e_fd_rdr_id
{
	FD,
	RDR
};
struct s_rdr_tmp
{
	const char	*word;
	char		*ptr;
	int8_t		redir;
};

int8_t	p_redirs(char word[], t_com **com, t_msh *msh);

#endif