refactor utils
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user