Ejemplo n.º 1
0
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);
}
Ejemplo n.º 2
0
/*
 * Menu command: view character history.
 */
static void death_history(const char *title, int row)
{
	history_display();
}
Ejemplo n.º 3
0
static void do_cmd_knowledge_history(const char *name, int row)
{
	history_display();
}