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

Go to the source code of this file.

Functions

ZIP_EXTERN int zip_get_archive_flag (zip_t *za, zip_flags_t flag, zip_flags_t flags)
 

Function Documentation

◆ zip_get_archive_flag()

ZIP_EXTERN int zip_get_archive_flag ( zip_t za,
zip_flags_t  flag,
zip_flags_t  flags 
)

Definition at line 39 of file zip_get_archive_flag.c.

39  {
40  unsigned int fl;
41 
42  fl = (flags & ZIP_FL_UNCHANGED) ? za->flags : za->ch_flags;
43 
44  return (fl & flag) ? 1 : 0;
45 }
#define ZIP_FL_UNCHANGED
Definition: zip.h:79
static struct sockaddr static addrlen static backlog const void static flags void flags
Definition: sfsocketcall.h:123
unsigned int flags
Definition: zipint.h:283
unsigned int ch_flags
Definition: zipint.h:284
zip_t * za
Definition: ziptool.c:79

References zip::ch_flags, flags, zip::flags, za, and ZIP_FL_UNCHANGED.