add hostname

This commit is contained in:
2021-06-26 23:05:27 -04:00
parent 60004f08dc
commit 8776bbd6fa
4 changed files with 31 additions and 16 deletions

View File

@@ -17,7 +17,11 @@
#define _MYSHELLIN_CONSOLE_LINE
#define CONSOLE_BUFFER_SIZE 1024
char *get_user();
void remove_new_line(char *line);
char *get_username();
char *get_hostname();
char *get_working_directory();

View File

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