refactor utils

This commit is contained in:
2021-07-17 17:36:38 -04:00
parent 71d74c3324
commit f867a46565
7 changed files with 69 additions and 28 deletions

View File

@@ -16,12 +16,6 @@
#ifndef _MYSHELLIN_CONSOLE_LINE
#define _MYSHELLIN_CONSOLE_LINE
/**
* Remove new line from the end of a string.
* @param line The string to remove the new line from.
*/
void remove_new_line(char *line);
/**
* Get the logged in user's username.
* @return Returns the logged in user's username.
@@ -34,12 +28,6 @@ char *get_username();
*/
char *get_hostname();
/**
* Get the current working directory of the shell.
* @return Returns the current working directory.
*/
char *get_working_directory();
/**
* Print the console line before the user input.
*/