GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
zzip_read(3) zziplib Function List zzip_read(3)

zzip_read, zzip_fread - read data.

#include <zzip/lib.h>



zzip_ssize_t
zzip_read(ZZIP_FILE * fp, void *buf, zzip_size_t len)
zzip_size_t
zzip_fread(void *ptr, zzip_size_t size, zzip_size_t nmemb, ZZIP_FILE * file)

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

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 EOF is encountered you will be prompted with the number of bytes actually read.

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

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

Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)

0.13.72 zziplib

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.