#include <assert.h>
#include <string.h>
/**
* name: strFrom
* desc: 根据起始位置从一个字符串中取出需要的子串
*
*/
char * strFrom (const char * strSource,int m, int n)
{
assert(strSource!=NULL&&m+1<n&&m>=0);
char * result=new char[n-m];
char * address=result;
for(int i=0; i<(int )strlen(strSource);i++){
if(i<n && i>m)
*result++=strSource[i];
}
*result='\0';
return address;
}