zzip_read(3)

NAME
zzip_read, zzip_fread - read data.

SYNOPSIS

#include <zzip/lib.h>

b'zzip_ssize_t\fInzzip_read(ZZIP_FILE * fp, void *buf, zzip_size_t len)
b'zzip_size_t\fInzzip_fread(void *ptr, zzip_size_t size, zzip_size_t nmemb, ZZIP_FILE * file)n'

DESCRIPTION
b' The zzip_read function will read(2) data from a real/zipped file.

b'The zzip_read function is the replacement for read(2) will fill the given buffer with bytes from the opened file. It will return the number of bytes read, so if the EOFis encountered you will be prompted with the number of bytes actually read.

b"If the file-handle is wrapping a stat'able file then it will actually justperform a normal read(2)-call, otherwise zzip_file_read is calledto decompress the data stream and any error is mapped to errno(3).nn"

AUTHOR
b'Guido Draheim <guidod@gmx.de>Tomi Ollila <Tomi.Ollila@iki.fi>

COPYRIGHT
b'Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)n'