23 |
* SOFTWARE. |
* SOFTWARE. |
24 |
*/ |
*/ |
25 |
#include <stdio.h> |
#include <stdio.h> |
26 |
|
#include <stdlib.h> |
27 |
|
#include <getopt.h> |
28 |
|
#include <unistd.h> |
29 |
#include "version.h" |
#include "version.h" |
30 |
#include "part.h" |
#include "part.h" |
31 |
|
|
|
extern int optind; |
|
|
extern char *optarg; |
|
|
|
|
32 |
extern int overwrite_files; |
extern int overwrite_files; |
33 |
extern int didchat; |
extern int didchat; |
34 |
int quiet; |
int quiet; |
35 |
|
|
36 |
void usage(void); |
void usage(void); |
37 |
|
int handleMessage(struct part *inpart, char *defaultContentType, |
38 |
|
int inAppleDouble, int extractText); |
39 |
|
|
40 |
int main(int argc, char **argv) |
int main(int argc, char **argv) |
41 |
{ |
{ |
102 |
|
|
103 |
void usage(void) { |
void usage(void) { |
104 |
fprintf(stderr, "munpack version %s\n", MPACK_VERSION); |
fprintf(stderr, "munpack version %s\n", MPACK_VERSION); |
105 |
fprintf(stderr, "usage: munpack [-f] [-q] [-C directory] [files...]\n"); |
fprintf(stderr, "usage: munpack [-f] [-q] [-t] [-C directory] [files...]\n"); |
106 |
exit(1); |
exit(1); |
107 |
} |
} |
108 |
|
|