char* revert(char* pstr) { int istrlen = strlen(pstr); char c; int iloop; for (iloop = 0; iloop < istrlen / 2; iloop ++) { c = pstr[iloop]; pstr[iloop] = pstr[istrlen - iloop - 1]; pstr[istrlen - iloop - 1] = c; } return pstr; }