All pastes #739306 Raw Edit

Someone

public text v1 · immutable
·published 2007-10-17 01:07 UTC
rendered paste body
#include <ctype.h>
#include <setjmp.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <signal.h>
#include <fcntl.h>
#include <unistd.h>

#define BUFSIZE 1024
#define INPUT 0
#define OUTPUT 1

#define FALSE 0
#define TRUE 1

struct args {
  int input_fd;
  int output_fd;
  char *num_of_lines;
};

typedef int boolean;

void printerror(char *errmsg1, char *errmsg2);

void print_usage(char *arg);

struct args parse_input(int argc, char *argv[]);