https://github.com/kuninoto/42_pipex
A simple C program that replicates the UNIX pipe functionality - introduction to Inter Process Communication (IPC)
https://github.com/kuninoto/42_pipex
21school 42 42-pipex 42-school 42born2code 42cursus 42ecole 42porto 42project 42projects 42school common-core ecole42 pipex pipex-42 pipex1337 pipex42 school21 school42
Last synced: 3 months ago
JSON representation
A simple C program that replicates the UNIX pipe functionality - introduction to Inter Process Communication (IPC)
- Host: GitHub
- URL: https://github.com/kuninoto/42_pipex
- Owner: Kuninoto
- Created: 2023-01-07T14:23:24.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-27T23:51:37.000Z (about 1 year ago)
- Last Synced: 2025-03-28T00:29:01.588Z (about 1 year ago)
- Topics: 21school, 42, 42-pipex, 42-school, 42born2code, 42cursus, 42ecole, 42porto, 42project, 42projects, 42school, common-core, ecole42, pipex, pipex-42, pipex1337, pipex42, school21, school42
- Language: C
- Homepage:
- Size: 1.5 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pipex (42Porto - 42Cursus)
### Showcase

### Description
A simple program that replicates the UNIX pipe functionality - introduction to Inter Process Communication (IPC).
### Installing and running the project
1- Clone this repository
git clone https://github.com/Kuninoto/42_pipex
2- Compile and clean the generated object files that you won't need anymore
make && make clean
3- Run `pipex`
./pipex
#### Makefile available targets
`make` or `make all` - Makes `pipex`
`make clean` - Deletes all the resulting object files
`make fclean` - Deletes `pipex` and all the resulting object files
`make re` - `fclean` + `all`
## Useful links
[The fork() function in C](https://www.youtube.com/watch?v=cex9XrZCU14&list=PLfqABt5AS4FkW5mOn2Tn9ZZLLDwA3kZUY)
[man dup, dup2](https://www.man7.org/linux/man-pages/man2/dup.2.html)
[C program that demonstrates fork and pipe GeekForGeeks](https://www.geeksforgeeks.org/c-program-demonstrate-fork-and-pipe/)
[Communicating between processes (using pipes) in C](https://www.youtube.com/watch?v=Mqb2dVRe0uo)
## Disclaimer
> At [42School](https://en.wikipedia.org/wiki/42_(school)), almost every project must be written in accordance to the "Norm", the schools' coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.
---
Made by Nuno Carvalho (Kuninoto) | nnuno-ca@student.42porto.com