console_line #7

Merged
cromer merged 7 commits from getchar into master 2021-06-26 23:15:01 -04:00
4 changed files with 5 additions and 1 deletions
Showing only changes of commit 53e3c1e276 - Show all commits

View File

@ -29,5 +29,4 @@ void insert_string_array(StringArray *string_array, char *string);
void delete_string_array(StringArray *string_array, int index); void delete_string_array(StringArray *string_array, int index);
void free_string_array(StringArray *string_array); void free_string_array(StringArray *string_array);
#endif #endif

View File

@ -19,6 +19,8 @@
#ifndef _MYSHELLIN_BUILTINS #ifndef _MYSHELLIN_BUILTINS
#define _MYSHELLIN_BUILTINS #define _MYSHELLIN_BUILTINS
bool is_builtin(char *command); bool is_builtin(char *command);
void run_builtin(StringArray *string_array); void run_builtin(StringArray *string_array);
void exit_shell(StringArray *string_array); void exit_shell(StringArray *string_array);
#endif #endif

View File

@ -16,6 +16,8 @@
#ifndef _MYSHELLIN_CONSOLE_LINE #ifndef _MYSHELLIN_CONSOLE_LINE
#define _MYSHELLIN_CONSOLE_LINE #define _MYSHELLIN_CONSOLE_LINE
char *get_user(); char *get_user();
char *get_working_directory(); char *get_working_directory();
void print_input_line(); void print_input_line();
#endif #endif

View File

@ -16,5 +16,6 @@
#ifndef _MYSHELLIN_LOOP #ifndef _MYSHELLIN_LOOP
#define _MYSHELLIN_LOOP #define _MYSHELLIN_LOOP
void remove_new_line(char *line); void remove_new_line(char *line);
void loop(); void loop();
#endif #endif