标签:
char *string_reverse(char * s)
{
int len = strlen(s);
char *head = s;
char *tail = s+len;
char *tmp = NULL;
for(i=0;i<len/2;i++)
{
*tmp = *(head+i);
*(head+i) = *(tail-i);
*(tail-i) = *tmp;
}
}
标签:
原文地址:http://www.cnblogs.com/guanqingbuyu/p/5236734.html