summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index da61aed..5ca2174 100644
--- a/utils.c
+++ b/utils.c
@@ -65,3 +65,12 @@ char* stringedArgument(int argc, char** argv)
}
return arg;
}
+
+void commandProcessor(char* packages, char* initCommand)
+{
+ char* command = (char *) calloc(strlen(packages) + 80, sizeof(char));
+ strcpy(command, initCommand);
+ strcat(command, packages);
+ system(command);
+ free(command);
+}