Lines Matching refs:str
27 char *str = "hello world";
28 char *result = index(str, 'e');
29 if (strcmp(str + 1, result) != 0) {
30 t_error("%s index get result is %s are not want %s\n", __func__, result, str + 1);
43 char *str = "hello world";
44 char *result = index(str, 'l');
45 if (strcmp(str + add_size, result) != 0) {
46 t_error("%s index get result is %s are not want %s\n", __func__, result, str + add_size);
58 char *str = "hello world";
59 char *result = index(str, 'a');