char* MoveString(char *pStr,int steps) { char * p; int len; len = strlen(pStr); p = (char *)malloc(strlen + 1); strcpy(p, pStr + len - steps); pStr[len - steps] = '\0'; strcat(p, pStr); strcpy(pStr, p); return pStr; }