Yurttas/PL/IL/C/F-mar11/04/02/00/03/io gs 03.c
Jump to navigation
Jump to search
1/*
2 Copyright(C) 1998
3 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for EDUCATIONAL purposes
7 and without fee is hereby granted provided that this
8 copyright notice appears in all copies.
9
10 date : January 1, 1998.
11 author : Salih Yurttas.
12
13 io_gs_03.c
14*/
15
16
17#define MAX_NO_STRING 256
18
19int double_space(char*, char *[]);
20
21void output(char*,
22 char *[],
23 int);
24
25int main(int argc, char *argv[]) {
26
27 int n;
28
29 char *s[MAX_NO_STRING];
30
31 if(argc!=3) {
32 printf("\nUsage: %s infile outfile\n", argv[0]);
33 exit(1);
34 }
35
36 n = double_space(argv[1],
37 s);
38
39 output(argv[2],
40 s,
41 n);
42
43}