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

Go to the source code of this file.

Macros

#define _ZIP_COMPILING_DEPRECATED
 

Functions

ZIP_EXTERN const char * zip_get_file_comment (zip_t *za, zip_uint64_t idx, int *lenp, int flags)
 

Macro Definition Documentation

◆ _ZIP_COMPILING_DEPRECATED

#define _ZIP_COMPILING_DEPRECATED

Definition at line 35 of file zip_get_file_comment.c.

Function Documentation

◆ zip_get_file_comment()

ZIP_EXTERN const char* zip_get_file_comment ( zip_t za,
zip_uint64_t  idx,
int lenp,
int  flags 
)

Definition at line 40 of file zip_get_file_comment.c.

40  {
42  const char *s;
43 
44  if ((s = zip_file_get_comment(za, idx, &len, (zip_flags_t)flags)) != NULL) {
45  if (lenp)
46  *lenp = (int)len;
47  }
48 
49  return s;
50 }
size_t len
Definition: 6502dis.c:15
#define NULL
Definition: cris-opc.c:27
ZIP_EXTERN const char *_Nullable zip_file_get_comment(zip_t *_Nonnull, zip_uint64_t, zip_uint32_t *_Nullable, zip_flags_t)
zip_uint32_t zip_flags_t
Definition: zip.h:347
int idx
Definition: setup.py:197
static RzSocket * s
Definition: rtr.c:28
static struct sockaddr static addrlen static backlog const void static flags void flags
Definition: sfsocketcall.h:123
static int
Definition: sfsocketcall.h:114
uint32_t zip_uint32_t
Definition: zipconf.h:37
zip_t * za
Definition: ziptool.c:79

References flags, setup::idx, int, len, NULL, s, za, and zip_file_get_comment().

Referenced by get_file_comment().