This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "pipeCommands.h" | |
| #include <unistd.h> | |
| void pipeIt(char ** prePipe, char ** postPipe) | |
| { | |
| int fd[2], res; | |
| pid_t pid; | |
| res = pipe(fd); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| int main() | |
| { | |
| int fd[2], res; | |
| pid_t pid; | |
| res = pipe(fd); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "linkedList.h" | |
| #include "words.h" | |
| void swap(void**, void**); | |
| LinkedList * linkedList(){ | |
| LinkedList* ll_ptr = (LinkedList*)malloc(sizeof(LinkedList)); | |
| ll_ptr->head = (Node*)malloc(sizeof(Node)); |