Rizin
unix-like reverse engineering framework and cli tools
zip_file_add.c File Reference
#include "zipint.h"

Go to the source code of this file.

Functions

ZIP_EXTERN zip_int64_t zip_file_add (zip_t *za, const char *name, zip_source_t *source, zip_flags_t flags)
 

Function Documentation

◆ zip_file_add()

ZIP_EXTERN zip_int64_t zip_file_add ( zip_t za,
const char *  name,
zip_source_t source,
zip_flags_t  flags 
)

Definition at line 45 of file zip_file_add.c.

45  {
46  if (name == NULL || source == NULL) {
48  return -1;
49  }
50 
52 }
#define NULL
Definition: cris-opc.c:27
ZIP_EXTERN void zip_error_set(zip_error_t *_Nullable, int, int)
Definition: zip_error.c:126
#define ZIP_ER_INVAL
Definition: zip.h:123
const char * source
Definition: lz4.h:699
static struct sockaddr static addrlen static backlog const void static flags void flags
Definition: sfsocketcall.h:123
Definition: z80asm.h:102
zip_error_t error
Definition: zipint.h:281
zip_int64_t _zip_file_replace(zip_t *za, zip_uint64_t idx, const char *name, zip_source_t *source, zip_flags_t flags)
#define ZIP_UINT64_MAX
Definition: zipconf.h:55
zip_t * za
Definition: ziptool.c:79

References _zip_file_replace(), zip::error, flags, NULL, source, za, ZIP_ER_INVAL, zip_error_set(), and ZIP_UINT64_MAX.

Referenced by main(), and zip_add().