Rizin
unix-like reverse engineering framework and cli tools
rz_api.h
Go to the documentation of this file.
1 #ifndef S_STRBUF_H
2 #define S_STRBUF_H
3 
4 #ifndef RZ_FREE
5 #define RZ_FREE(x) { free(x); x = NULL; }
6 #endif
7 #ifndef RZ_NEW0
8 #define RZ_NEW0(x) (x*)calloc(1,sizeof(x))
9 #endif
10 
11 #ifdef _MSC_VER
12 void out_printf(Output *out, char *str, ...);
13 #else
14 void out_printf(Output *out, char *str, ...) __attribute__ ((format (printf, 2, 3)));
15 #endif
16 
17 #if USE_R2
18 #include <rz_util.h>
19 #else
20 SStrBuf *rz_strbuf_new(const char *s);
21 bool rz_strbuf_set(SStrBuf *sb, const char *s);
22 bool rz_strbuf_append(SStrBuf *sb, const char *s);
23 char *rz_strbuf_get(SStrBuf *sb);
24 char *rz_strbuf_drain(SStrBuf *sb);
28 int rz_sys_setenv(const char *key, const char *value);
29 char *rz_sys_getenv(const char *key);
30 int rz_sys_getpid(void);
31 #endif
32 
33 #endif
static SblHeader sb
Definition: bin_mbn.c:26
const lzma_allocator const uint8_t size_t uint8_t * out
Definition: block.h:528
static int value
Definition: cmd_api.c:93
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
Definition: cs_driver.c:93
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len key
Definition: sflib.h:118
#define __attribute__(x)
Definition: ansidecl.h:266
static RzSocket * s
Definition: rtr.c:28
void rz_strbuf_fini(SStrBuf *sb)
Definition: rz_api.c:97
void rz_strbuf_free(SStrBuf *sb)
Definition: rz_api.c:92
void rz_strbuf_init(SStrBuf *sb)
Definition: rz_api.c:18
void out_printf(Output *out, char *str,...) __attribute__((format(printf
bool rz_strbuf_set(SStrBuf *sb, const char *s)
Definition: rz_api.c:22
int rz_sys_getpid(void)
Definition: sys.c:1164
int rz_sys_setenv(const char *key, const char *value)
Set an environment variable in the calling process.
Definition: sys.c:405
bool rz_strbuf_append(SStrBuf *sb, const char *s)
Definition: rz_api.c:47
char * rz_sys_getenv(const char *key)
Get the value of an environment variable named key or NULL if none exists.
Definition: sys.c:483
char * rz_strbuf_drain(SStrBuf *sb)
Definition: rz_api.c:84
char * rz_strbuf_get(SStrBuf *sb)
Definition: rz_api.c:80
void SStrBuf * rz_strbuf_new(const char *s)
Definition: strbuf.c:8
Definition: spp.h:92
Definition: spp.h:84