char str[vector_total(&final_clause)];
for(int i = 0; i<vector_total(&final_clause); i++)
{
printf("%s ", (char*) vector_get(&final_clause,i)); // outputs b a -c a a -c -c
strcpy(str, (char*) vector_get(&final_clause,i));
}
printf("%s", str); //only prints -c (last )
remove_repeatation(str); // removes repeats. Expected: b a-c
Evidently its replacing 'str' everyloop. So what is the best way to fix this? Not sure if this is a easy question but I just haven't been able to crack it using different approaches.