pipex.h 1.5 KB

123456789101112131415161718192021222324252627282930313233
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* pipex.h :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: phella <phella@student.42.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2022/03/01 12:24:54 by phella #+# #+# */
  9. /* Updated: 2022/03/03 18:43:27 by phella ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #ifndef PIPEX_H
  13. # define PIPEX_H
  14. # include <unistd.h>
  15. # include <stdlib.h>
  16. # include <fcntl.h>
  17. # include <stdio.h>
  18. char **ft_split(const char *s, char c);
  19. int ft_strlen(const char *str);
  20. char *ft_strnstr(const char *haystack, const char *needle, int len);
  21. char *ft_strjoin(char *s1, char *s2);
  22. char *ft_path(char *cmd, char **env);
  23. char *ft_pwd_path(char *cmd, char **env);
  24. void ft_get_cmd(char *argv, char **env);
  25. void ft_parent_process(char **argv, char **env, int *fd);
  26. void ft_child_process(char **argv, char **env, int *fd);
  27. int main(int argc, char **argv, char **env);
  28. #endif