Thread

Thread Index

Message

From: Anish Patel <anish.mailing.list%gmail.com@localhost>
To: libzip-discuss%nih.at@localhost
Subject: Extracting file from archive
Date: Wed, 15 Jun 2011 17:45:21 -0400

I know this sounds silly, but how do i use libzip to extract my file?  I've trying to find examples all day, but can't seem to find anything.

right now i have

struct zip *tempData;
tempData = zip_fopen(zipFile,argv[1],0);

what are the members of zip that one is allowed to manipulate?

BTW - i noticed this in the zip.h header file
ZIP_EXTERN zip_uint64_t zip_get_num_entries(struct zip *, int);
ZIP_EXTERN int zip_get_num_files(struct zip *);  /* deprecated, use zip_get_num_entries instead */

yet the website indicates the inverse of the header file says.

Thanks
Anish

Made by MHonArc.