0
|
1 extern int option(int,char**);
|
|
2 extern void usage();
|
|
3 extern int printf(char*,...);
|
|
4
|
|
5 extern int help;
|
|
6 extern char* outfile;
|
|
7 extern char* infile;
|
|
8
|
|
9 void
|
|
10 breakp(void *ret, void *env)
|
|
11 {
|
|
12 return;
|
|
13 }
|
|
14
|
|
15 int
|
|
16 main(int argc,char **argv)
|
|
17 {
|
|
18 if(option(argc,argv)){
|
|
19 printf("Invalid option\n");
|
|
20 usage();
|
|
21 return 1;
|
|
22 }
|
|
23 if(help){
|
|
24 usage();
|
|
25 return 0;
|
|
26 }
|
|
27 if(infile){
|
|
28 printf("infile: %s\n", infile);
|
|
29 } else{
|
|
30 printf("Invalid usage\n");
|
|
31 usage();
|
|
32 return 1;
|
|
33 }
|
|
34 if(outfile){
|
|
35 printf("outfile: %s\n", outfile);
|
|
36 }
|
|
37 return 0;
|
|
38 }
|