int b_history(t_context *context, t_list *args) { size_t arg_count; arg_count = ft_lstsize(args); if (arg_count > 3) return (builtin_error(HISTORY_BUILTIN, ERR_TOO_MANY_ARGS, 0)); if (arg_count == 1) return (history_display(context, 0, 0)); return (BUILTIN_SUCCESS); }
/* * Menu command: view character history. */ static void death_history(const char *title, int row) { history_display(); }
static void do_cmd_knowledge_history(const char *name, int row) { history_display(); }