3 * store/unstore archive file
5 * $Header: store.c 1.5 95/08/01 $
7 * Revision 1.5 95/08/01 xx:xx:xx BB
8 * Fixed for Borland C/C++
10 * Revision 1.4 93/08/20 11:50:20 arb
11 * Do not print "unstored" if in quiet mode
13 * Revision 1.3 92/12/07 17:19:39 duplain
16 * Revision 1.2 92/10/01 11:22:46 duplain
17 * Added check for EOF.
19 * Revision 1.1 92/09/29 18:02:26 duplain
31 /* BB changed next line because of conflict with Borland's io.h */
37 unstore(Header
*header
, FILE *ifp
, FILE *ofp
)
39 register Word len
= header
->complen
;
47 if (check_stream(ifp
) != FNOERR
)
49 byte
= read_byte(ifp
);
50 byte
= ungarble(byte
);
53 write_byte(ofp
, byte
);
56 if (check_stream(ifp
) == FRWERR
)
58 if (!testing
&& check_stream(ofp
) == FRWERR
)
60 if ((Halfword
) crc
!= header
->crc
)