move the remove variable sysmbols function to utils

This commit is contained in:
2021-07-17 21:27:39 -04:00
parent 8f57501927
commit 56a6747e06
4 changed files with 22 additions and 21 deletions

View File

@@ -62,11 +62,4 @@ void set_variable(StringArray *args);
*/
void echo(StringArray *args);
/**
* Remove the $ symbol from a variable name.
* @param original_variable The original variable name.
* @return Returns the string without the $ symbool.
*/
char *remove_variable_symbol(char *original_variable);
#endif

View File

@@ -27,4 +27,12 @@ void remove_new_line(char *line);
* @return Returns the current working directory.
*/
char *get_working_directory();
/**
* Remove the $ symbol from a variable name.
* @param original_variable The original variable name.
* @return Returns the string without the $ symbool.
*/
char *remove_variable_symbol(char *original_variable);
#endif