41 const char *
teststr =
"This is a test.\n";
42 const char *
file =
"teststring.txt";
52 fprintf(stderr,
"usage: %s archive\n",
argv[0]);
67 fprintf(stderr,
"can't create zip_source from buffer: %s\n",
zip_strerror(
za));
int main(int argc, char *argv[])
ZIP_EXTERN void zip_error_init_with_code(zip_error_t *_Nonnull, int)
ZIP_EXTERN zip_file_t *_Nullable zip_fopen(zip_t *_Nonnull, const char *_Nonnull, zip_flags_t)
ZIP_EXTERN zip_int64_t zip_add(zip_t *_Nonnull, const char *_Nonnull, zip_source_t *_Nonnull)
ZIP_EXTERN void zip_discard(zip_t *_Nonnull)
ZIP_EXTERN int zip_close(zip_t *_Nonnull)
ZIP_EXTERN void zip_error_fini(zip_error_t *_Nonnull)
ZIP_EXTERN void zip_source_free(zip_source_t *_Nullable)
ZIP_EXTERN zip_t *_Nullable zip_open(const char *_Nonnull, int, int *_Nullable)
ZIP_EXTERN const char *_Nonnull zip_error_strerror(zip_error_t *_Nonnull)
ZIP_EXTERN zip_source_t *_Nullable zip_source_buffer(zip_t *_Nonnull, const void *_Nullable, zip_uint64_t, int)
ZIP_EXTERN const char *_Nonnull zip_strerror(zip_t *_Nonnull)
static static fork const void static count static fd const char const char static newpath char char argv
void error(const char *msg)