I just ran into to a problem while working on the project. The thing is when I'm working on replacing a string, I want to use multidimentional arrays as
mystings[5][40];
but I really donno how to apply them in replacing the string; however, I know how to use 2 strings as

void replace_strings(char*s1,char *s2){
char *temp;
temp=(char*)malloc(strlen(s)+1, size of char);
if(!temp){M.A.F.}
if (strcmp(s1,s2)>0){
strcpy(temp,s1);
strcpy(s1,s2);
strcpy(s2,temp);
free(temp);
}
return;
}


Any kind of help is greatly appreciated