Minishell
Loading...
Searching...
No Matches
history_utils.c File Reference
#include "../../include/main.h"
#include "../../include/custom_commands.h"
#include <sys/stat.h>
#include "../../include/run_command.h"
#include "../../include/utils.h"
Include dependency graph for history_utils.c:

Functions

void init_history (history_t *history)
 
int utils_is_digit (const char *str)
 
int command_is_digit (const char *str)
 
void free_utils_arrow_command (data_t *dt, char *path, char **arr, char *lines)
 
void up_down_command (data_t *data, bool up_direction, int *his_idx)
 

Function Documentation

◆ command_is_digit()

int command_is_digit ( const char * str)
Here is the call graph for this function:

◆ free_utils_arrow_command()

void free_utils_arrow_command ( data_t * dt,
char * path,
char ** arr,
char * lines )
Here is the call graph for this function:

◆ init_history()

void init_history ( history_t * history)

◆ up_down_command()

void up_down_command ( data_t * data,
bool up_direction,
int * his_idx )

Move cursor up or down by using arrow keys

Parameters
data
up_directionbool false if up/ true if down
his_idxindex of the history
Here is the call graph for this function:

◆ utils_is_digit()

int utils_is_digit ( const char * str)