>>831
swap_array(char a[],char b[])
{
char *tmp;
tmp = malloc(strlen(a)+1);
strcpy(tmp, a);
strcpy(a, b);
strcpy(b, tmp);
free(tmp);
}