LoadRunner?????????????滻???
???????????? ???????[ 2015/5/26 15:15:00 ] ??????????????????
??????????????????????????????????????????????????????????????????????????????????????????+???????????????????????????????
?????????в????????.??????????????????????????.????????????????C??????????????滻??????loadrunner????????????滻?????????????????????
??????1????????????
???????????date/time???????????????%Y%m%d%H%M%S.000
??????2???滻?????????
char *strreplace(char *dest?? char *src?? const char *oldstr?? const char *newstr?? size_t len)
{
/* @param char* dest ?????????滻????′?
* @param const char* src ???????????滻???????
* @param const char* oldstr ?????????????滻?????
* @param const char* newstr ?μ????
* @param int len ??????滻???len?????*/
//???λ?????
char *needle;
//????????
char *tmp;
//?????????????????
if(strcmp(oldstr?? newstr)==0){
return src;
}
//???????????????dest??????dest??src?????src?????????
dest = src;
//??????????? ???????λ?????len???????Χ??? ??????滻?? ??????????
while((needle = (char *) strstr(dest?? oldstr)) && (needle -dest <= len)){
//?????μ???: +1 ?????????β??'