-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipex.h
34 lines (31 loc) · 1.51 KB
/
pipex.h
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pipex.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ghuertas <ghuertas@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/10 17:58:50 by dolvin17 #+# #+# */
/* Updated: 2023/10/01 21:04:52 by ghuertas ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef PIPEX_H
# define PIPEX_H
# include <stddef.h>
# include <unistd.h>
# include <stdio.h>
# include <stdlib.h>
# include <stdint.h>
# include <sys/wait.h>
# include <stdbool.h>
# include <fcntl.h>
# include <errno.h>
int main(int argc, char *argv[]);
char *ft_strnstr(const char *haystack, const char *needle, size_t len);
char **ft_split(char const *s, char c);
char *ft_strjoin(char const *str_1, char const *str_2);
int new_exec(char *argument, char **environ);
char *get_path(char *command, char **environ);
pid_t duplicate_and_execve(int fd[2], int stdin, int stdout, char *cmd);
void check_error(bool if_error, int value, char *str);
#endif