Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | RZ_FREE(x) { free(x); x = NULL; } |
#define | RZ_NEW0(x) (x*)calloc(1,sizeof(x)) |
Functions | |
void | out_printf (Output *out, char *str,...) __attribute__((format(printf |
void SStrBuf * | rz_strbuf_new (const char *s) |
bool | rz_strbuf_set (SStrBuf *sb, const char *s) |
bool | rz_strbuf_append (SStrBuf *sb, const char *s) |
char * | rz_strbuf_get (SStrBuf *sb) |
char * | rz_strbuf_drain (SStrBuf *sb) |
void | rz_strbuf_free (SStrBuf *sb) |
void | rz_strbuf_fini (SStrBuf *sb) |
void | rz_strbuf_init (SStrBuf *sb) |
int | rz_sys_setenv (const char *key, const char *value) |
Set an environment variable in the calling process. More... | |
char * | rz_sys_getenv (const char *key) |
Get the value of an environment variable named key or NULL if none exists. More... | |
int | rz_sys_getpid (void) |
void out_printf | ( | Output * | out, |
char * | str, | ||
... | |||
) |
Referenced by PUT_CALLBACK(), and TAG_CALLBACK().
char* rz_strbuf_drain | ( | SStrBuf * | sb | ) |
Definition at line 84 of file rz_api.c.
References free(), NULL, rz_strbuf_fini(), sb, and strdup().
void rz_strbuf_fini | ( | SStrBuf * | sb | ) |
Definition at line 97 of file rz_api.c.
Referenced by rz_strbuf_drain(), and rz_strbuf_free().
void rz_strbuf_free | ( | SStrBuf * | sb | ) |
Definition at line 92 of file rz_api.c.
References free(), rz_strbuf_fini(), and sb.
char* rz_strbuf_get | ( | SStrBuf * | sb | ) |
void rz_strbuf_init | ( | SStrBuf * | sb | ) |
Definition at line 8 of file strbuf.c.
References RZ_NEW0, rz_strbuf_set(), s, and cmd_descs_generate::str.
Definition at line 22 of file rz_api.c.
References malloc(), memcpy(), NULL, rz_strbuf_init(), s, and sb.
Referenced by rz_strbuf_new().
char* rz_sys_getenv | ( | const char * | key | ) |
Get the value of an environment variable named key
or NULL if none exists.
Definition at line 483 of file sys.c.
References b, DWORD, free(), getenv(), key, malloc(), NULL, realloc(), strdup(), and val.
Referenced by rz_sys_getenv_asbool().
int rz_sys_getpid | ( | void | ) |
Set an environment variable in the calling process.
Definition at line 405 of file sys.c.
Referenced by rz_sys_set_environ().