char *cut(char *s,int m,int n){ char *r = (char*)malloc(n+1); int i; for(i = m; i<m+n; i ++) r[i-m] = s[i]; r[n] = 0; return r;}