diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2002-09-25 06:47:48 +0400 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2002-09-25 06:47:48 +0400 |
commit | 7ca04f328e22fcbee4659d73f9a72dfdf1dd6a23 (patch) | |
tree | f38c7ef4317eea28c6abdb0adbbb286fe041711e /archival/libunarchive/data_extract_to_stdout.c | |
parent | ecfa290cfd4953598e6d91989bd66ac16e135f84 (diff) |
New common unarchive code.
Diffstat (limited to 'archival/libunarchive/data_extract_to_stdout.c')
-rw-r--r-- | archival/libunarchive/data_extract_to_stdout.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/archival/libunarchive/data_extract_to_stdout.c b/archival/libunarchive/data_extract_to_stdout.c new file mode 100644 index 000000000..00687b315 --- /dev/null +++ b/archival/libunarchive/data_extract_to_stdout.c @@ -0,0 +1,8 @@ +#include <stdlib.h> +#include <stdio.h> +#include "unarchive.h" + +extern void data_extract_to_stdout(archive_handle_t *archive_handle) +{ + copy_file_chunk_fd(archive_handle->src_fd, fileno(stdout), archive_handle->file_header->size); +} |