Permalink
Browse files

Adding execs

  • Loading branch information...
1 parent a3867a5 commit 7fc4f82d5fc7da9424a1f46fbf977d7924880172 @pilliq committed Feb 13, 2012
Showing with 7 additions and 0 deletions.
  1. +6 −0 shell.c
  2. +1 −0 shell.h
View
@@ -8,6 +8,10 @@
#define DELIMINATORS "\t "
+void exec(Command c) {
+
+}
+
void acceptUserInput()
{
Commands c;
@@ -58,6 +62,8 @@ void acceptUserInput()
}
/* Assuming execution of commands go here */
+ exec(c);
+
cleanCommands(c);
cleanArray(tokens, 50);
tokens = NULL;
View
@@ -1,6 +1,7 @@
#ifndef SHELL_H
#define SHELL_H
+void exec(Command c);
void acceptUserInput();
void acceptFileInput();
#endif

0 comments on commit 7fc4f82

Please sign in to comment.