- 博客(11)
- 收藏
- 关注
原创 环境变量
Action() { char * temp = (char *) getenv("TEMP"); char env[512]; long file; if (temp) { lr_output_message("tem
2011-08-03 11:15:27 244
原创 字符串函数总结
连接:strcat strncat 搜索:strchr strrchr strstr 比较:strcmp stricmp strncmp strnicmp 复制:strcpy strdup strncpy 长度:strlen 大小写:strlwr strupr 替换:
2011-08-02 15:05:51 264
原创 strspn
Action() { char fullpath[] = "Linux was first developed for 386/486-based pcs."; int num; num = strspn(fullpath, "Linux w");
2011-08-02 14:15:55 280
原创 字符串全用字符代替
Action() { char fullpath[] = "c:\\tmp\\logfile.txt"; strset(fullpath, 'x'); lr_output_message("%s", fullpath); }
2011-08-02 14:00:48 376
原创 把integer转换成string,并只连接一段
Action() { char strId[512]; int id, length; lr_whoami(&id, NULL, NULL); sprintf(strId, "%d_", id); length = 8 - st
2011-08-02 11:25:29 395
原创 复制lr_whoami中的组名,并变为小写
Action() { char * ogroupName, * groupName; int id, scid; lr_whoami(&id, &groupName, &scid); lr_output_message("id:%d\ts
2011-08-02 10:37:06 727
原创 比较和不区分大小写比较
Action() { char string1[] = "The quick brown dog jumps over the lazy fox"; char string2[] = "The QUICK brown dog jumps over th
2011-08-01 16:05:28 1901
原创 第一个字符出现后的所有字符串
Action() { char fullpath[] = "c:\\tmp\\logfile.txt"; char * first_t, * first_g, * first_b; first_t = (char *) strchr(ful
2011-08-01 15:41:24 425
原创 目标字符串足够长才能连接字符串
Action() { char fullpath[1024] = "c:\\tmp"; char filename[] = "logfile.txt"; //strcpy(fullpath, "c:\\tmp"); strcat(f
2011-08-01 15:16:32 234
原创 loadrunner文件操作
c:\\test.txt 1111 2222 3333 4444 5555 #define FILEADDRESS "c:\\test.txt" Action() //从test.txt读取5行十进制整数数据 { int file, i, l
2011-08-01 14:27:37 798 1
原创 loadrunner中web_url()的想法
The web_url function is an action function that loads the Web page (GET request) specified by the URL argument. The web_url function does no
2011-08-01 13:53:25 3727
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人