Skip to content

Instantly share code, notes, and snippets.

#include "pipeCommands.h"
#include <unistd.h>
void pipeIt(char ** prePipe, char ** postPipe)
{
int fd[2], res;
pid_t pid;
res = pipe(fd);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int main()
{
int fd[2], res;
pid_t pid;
res = pipe(fd);
#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));