home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
archiver
/
unshar.arj
/
UNSHAR.H
< prev
next >
Wrap
Text File
|
1990-02-19
|
871b
|
50 lines
/*
* Unshar - extract files from shell archive
*
* Written by Warren Toomey. Nov, 1989.
* You may freely copy or give away this source as
* long as this notice remains intact.
*
* Definitions used by unshar
*/
/* Methods of unsharing */
#define UNKNOWN 0
#define BRUTAL 1
#define APPEND 2
/* Whitespace indicators */
#define WHITE 0
#define NOWHITE 1
/* Leading character indicators */
#define NOX 0
#define YESX 1
/* Emulation types available */
#define NUMTOKS 4 /* Must change NUMTOKS to equal the */
/* define UNKNOWN 0 */ /* number of emulation types */
#define SED 1
#define GRES 2
#define CAT 3
static char *token[NUMTOKS] = /* The list of emulation types! */
{ "",
"sed",
"gres",
"cat"
};
/* Misc. constants */
#define BUFSIZE 256 /* Size of line buffer */