Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_core.h>
Go to the source code of this file.
Functions | |
static char * | rizin_fortune_file (const char *type) |
RZ_API void | rz_core_fortune_list_types (void) |
RZ_API void | rz_core_fortune_list (RzCore *core) |
RZ_API RZ_OWN char * | rz_core_fortune_get_random (RzCore *core) |
RZ_API void | rz_core_fortune_print_random (RzCore *core) |
Variables | |
static const char * | fortunes [] |
|
static |
Definition at line 10 of file fortune.c.
References free(), rz_file_path_join(), RZ_FORTUNES, rz_path_system(), RZ_STR_DUP, rz_strf, and type.
Referenced by rz_core_fortune_get_random(), and rz_core_fortune_list().
Definition at line 49 of file fortune.c.
References rz_core_t::config, free(), setup::line, lines(), rizin_fortune_file(), rz_config_get(), rz_file_slurp_random_line_count(), and types.
Referenced by __fortune_cb(), and rz_core_fortune_print_random().
Definition at line 28 of file fortune.c.
References rz_core_t::config, free(), NULL, rizin_fortune_file(), rz_config_get(), rz_cons_printf(), rz_file_slurp(), cmd_descs_generate::str, and types.
Referenced by cb_cfg_fortunes().
RZ_API void rz_core_fortune_list_types | ( | void | ) |
Definition at line 21 of file fortune.c.
References fortunes, i, RZ_ARRAY_SIZE, and rz_cons_printf().
Referenced by cb_cfg_fortunes_file().
Definition at line 60 of file fortune.c.
References rz_core_t::config, free(), setup::line, rz_config_get_i(), rz_cons_printf(), rz_core_clippy(), and rz_core_fortune_get_random().
Referenced by rz_cmd_shell_fortune_handler(), and rz_main_rizin().
|
static |
Definition at line 6 of file fortune.c.
Referenced by rz_core_fortune_list_types().