字符串反转
```c
#include <stdio.h>
char * str_reverse(char * a, char * a_copy, int len)
{
char * temp_a = a;
while (*temp_a != 0)
{
temp_a++;
}
temp_a--;
printf(" *temp_a====: %c\n", *temp_a);
char *temp_copy = a_copy;
int i = 0;
while (len > 1){
printf(" *temp_a====: %c\n", *temp_a);
temp_copy[i] = *temp_a--;
printf("temp_copy[i]====: %c\n", temp_copy[i]);
i++;
len--;
}
printf("temp_copy====: %s\n", temp_copy);
return temp_copy;
}
int main()
{
char a[] = "abcdefg";
char *b = "abcdhsas";
char a_copy[1024] = { 0 };
int len = sizeof(a) / sizeof(a[0]);
printf("len: %d\n", len);
char * p = str_reverse(a, a_copy, len);
printf("*p1====: %s\n", a_copy);
system("pause");
return 0;
}