char* concat(const char *s1, const char *s2) { char* result = (char*)malloc(strlen(s1) + strlen(s2) + 1); // +1 for the null-terminator strcpy(result, s1); strcat(result, s2); return result; } char* ExecCmd( char* cmd ) { FILE* command_result_file =...