I am trying to have one function pass an string into a string like this:
char taBortTecken(char inputString[]){
//antalBokstaver-1 make sure the string is just the right size. This is working properly
char nyString[antalBokstaver-1];
return nyString;
}
int main(void){
char inputString[] = "halloj i stugan";
char hellA[] = taBortTecken(inputString);
return 0;
}
Basically main is calling Stringfuction and giving it a string, it does its work and passes back a "processed" string (not the same content obviously). Note that this code in not working but sums up what I am trying to do.