void swap(char **p, char **q) { char *temp; temp = *p; *p = *q; *q = temp; }