2022-10-25 01:09:00 -05:00
|
|
|
#ifndef COMMON_H
|
|
|
|
#define COMMON_H
|
|
|
|
|
2022-10-29 05:14:23 -05:00
|
|
|
const char* GetHomeDir(void);
|
|
|
|
|
2022-10-25 01:09:00 -05:00
|
|
|
typedef struct CommandStruct {
|
2022-10-25 01:30:43 -05:00
|
|
|
char* argv[100]; // Max 100 commands
|
2022-10-25 01:09:00 -05:00
|
|
|
int argc;
|
2022-10-29 22:55:36 -05:00
|
|
|
char* envp[20]; // Enviroment Varibles
|
2022-10-25 01:09:00 -05:00
|
|
|
} CommandStruct;
|
|
|
|
|
2022-10-29 05:14:23 -05:00
|
|
|
void CopyCommandStruct(CommandStruct* oldCommand, CommandStruct* newCommand, int start, int end);
|
2022-10-27 00:25:40 -05:00
|
|
|
void ResetCommandStruct(CommandStruct* command);
|
|
|
|
|
2022-10-29 22:55:36 -05:00
|
|
|
#endif
|