#include "stdio.h"#include "string.h"void loopmove(char* pstr,int steps){ int n=strlen(pstr)-steps; char tmp[10]; strcpy(tmp,pstr+n); strcpy(tmp+steps,pstr); *(tmp+strlen(pstr))='/0'; // it shoud be '\0' rather than '/0' = = strcpy(pstr,tmp);}int main(){ int steps=2; char pstr[]="abcdefg"; // you should not using a constant point string !!!loopmove(pstr, steps); printf(" zhegeshi %s/n",pstr); // here should be '\n' getchar(); return 0;}