Skip to content

Instantly share code, notes, and snippets.

View sasakiyudai's full-sized avatar
😆
positive

syudai sasakiyudai

😆
positive
View GitHub Profile
@sasakiyudai
sasakiyudai / pipes.c
Last active October 24, 2023 10:11
Implementation of Multiple pipes in C.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
// just count number of commands
int count(char ***cmd) {
int i;
i = 0;
while (cmd[i]) i++;
return i;