中山大学计算机历年复试面试考研试题合集(5)

本站小编 免费考研网/2019-12-09


    if (len) {                                                                                                                            
      sp = p + strlen(s1);                                                                                                                
      dp = sp + len;                                                                                                                      
      cnt = strlen(sp) + 1;                                                                                                               
      memmove(p+strlen(s1)+len, p+strlen(s1), cnt);                                                                                       
    }                                                                                                                                     
    memcpy(p, s2, strlen(s2));                                                                                                            
    pos = p + strlen(s2);                                                                                                                 
    if (*pos == 0) {                                                                                                                      
        return s;                                                                                                                         
    }                                                                                                                                     
}                                                                                                                                       
}
 


相关话题/