???????估?滻 C???
???????????? ???????[ 2016/12/15 15:00:27 ] ????????C????
????(1)?????????????????滻
????(2)?????????????滻?????????????滻?????磺"12345jkgkfdjgl;f123kdaj;fj" ??"123"?滻? "12345" ??????????????????
????(3)???????????滻?????????? ???磺"12345jkgkfdjgl;f123kdaj;fj" ??"123"?滻? "12" ??
????// ????INPUT:
????// in ??????????????
????// out ?????????????
????// outlen ????????????
????// src ?????????????
????// dst ?滻??????????
????// ????OUTPUT:
????// ret ??????
????// <0 ????;
????// >0 ????滻????
????int strckrpl(char *in?? char *out?? int outlen?? const char *src?? char *dst)
????{
????char *p = in;
????unsigned int len = outlen - 1;
????int ret = 0;
????int srclen = 0;
????int dstlen = 0;
????// ???μ??????????
????if((NULL == src) || (NULL == dst) || (NULL == in) || (NULL == out))
????{
????ret = -1;
????}
????if((strcmp(in?? "") == 0) || (strcmp(src?? "") == 0))
????{
????ret = -2;
????}
????if(outlen <= 0)
????{
????ret = -3;
????}
????else
????{
????srclen = strlen(src);
????dstlen = strlen(dst);
????while((*p != '