一段单词反转的函数
i am a student ---------->> student a am i
void reverse_str(const char *pSource, char *pDest) { char *p = pSource; char *pBlank = " "; while(*p && 0x20 != *p) p++; if (*p) { reverse_str(p+1, pDest); } strncat(pDest, pSource, p-pSource); strcat(pDest, pBlank); }