Public feed #727547

Stuff

public text v1 · immutable
Raw Edit
·published 2007-10-06 03:26 UTC
rendered paste body
#include <ctype.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.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[]);