diff options
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); +} |