LF OS
Hobby operating system for amd64 with high ambitions
Loading...
Searching...
No Matches
history.c File Reference
#include <stdio.h>
#include <string.h>
#include "history.h"
+ Include dependency graph for history.c:

Go to the source code of this file.

Functions

void hist_push (char *entry)
 
int history_built_in (int argc, char **argv)
 
void add_hist_entry (char *fpath, char *entry)
 
char * get_hist_at_off (int off)
 

Variables

int history_current_offset
 
char * history [64]
 

Function Documentation

◆ add_hist_entry()

void add_hist_entry ( char *  fpath,
char *  entry 
)

Definition at line 45 of file history.c.

References entry, and strlen().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_hist_at_off()

char * get_hist_at_off ( int  off)

Definition at line 56 of file history.c.

References history, and history_current_offset.

+ Here is the caller graph for this function:

◆ hist_push()

void hist_push ( char *  entry)

Definition at line 12 of file history.c.

References entry, history, and history_current_offset.

+ Here is the caller graph for this function:

◆ history_built_in()

int history_built_in ( int  argc,
char **  argv 
)

Definition at line 17 of file history.c.

References history, and history_current_offset.

Variable Documentation

◆ history

char* history[64]

Definition at line 10 of file history.c.

◆ history_current_offset

int history_current_offset

Definition at line 9 of file history.c.