voidstrmcpy(char* t,int m,char* s){
int len =0;char* ret = t;while(*ret !='\0'){
ret++;
len++;}if(m > len)*s ='\0';else{
t = t + m -1;while(*t !='\0'){
*s =*t;
s++;
t++;}*s =*t;//还有\0;}}
6-2 Split the integer part and decimal part of a real number
intfrequency(char* paragraph,char* from,char* to){
int x =0;for(int i =0; paragraph[i]!='\0'; i++){
if(paragraph[i]==*from){
int flag =1;for(int j =0; j <(to - from +1); j++)if(paragraph[i + j]!=*(from + j)){
flag =0;break;}if(flag)
x++;}}return x;}