14 lines
357 B
C
14 lines
357 B
C
|
#include <stdlib.h>
|
||
|
#include "Integrated.h"
|
||
|
|
||
|
// Checks for commands that are built into Pish
|
||
|
void IntegratedCheck(char* command)
|
||
|
{
|
||
|
if (command == "exit")
|
||
|
exit(0);
|
||
|
// If there is an argument, change to argument location
|
||
|
// Else, change to home directory
|
||
|
if (command[0] == 'c' && command[1] == 'd')
|
||
|
;
|
||
|
return;
|
||
|
}
|