42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
history_file.c File Reference

The file containing the history_file functions. More...

Functions

void set_command_in_history (mysh_t *mysh, char *line)
 Set the command in the history.
 
void create_history (mysh_t *mysh)
 Create the history file.
 

Detailed Description

The file containing the history_file functions.

Function Documentation

◆ create_history()

void create_history ( mysh_t * mysh)

Create the history file.

Parameters
myshThe shell structure
Returns
void

◆ set_command_in_history()

void set_command_in_history ( mysh_t * mysh,
char * line )

Set the command in the history.

Parameters
myshThe shell structure
lineThe line to set in the history
Returns
void