2 #include "zipios++/zipios-config.h"
4 #include "zipios++/meta-iostreams.h"
10 using namespace zipios ;
15 void exitUsage(
int exit_code ) ;
17 int main(
int argc,
char *argv[] ) {
18 _progname = argv[ 0 ] ;
22 ofstream exef( argv[ 1 ], ios::app | ios::binary ) ;
24 cout <<
"Error: Unable to open " << argv[ 1 ] <<
" for writing" << endl ;
28 ifstream zipf( argv[ 2 ], ios::in | ios::binary ) ;
30 cout <<
"Error: Unable to open " << argv[ 2 ] <<
" for reading." << endl ;
35 uint32 zip_start = exef.tellp() ;
36 cout <<
"zip start will be at " << zip_start << endl ;
40 exef << zipf.rdbuf() ;
42 writeUint32( zip_start, exef ) ;
51 cout <<
"Usage: " << _progname <<
" exe-file zipfile" << endl ;
54 void exitUsage(
int exit_code ) {
Header file containing classes and functions for reading the central directory and local header field...
Header file that defines I/O functions for the header structures defined in ziphead.h.