Lines Matching defs:ptr
40 char* ptr;
51 ptr = normalized_path;
57 if (ptr == normalized_path && next != NULL && is_absolute) {
58 *ptr = '/';
59 ptr++;
62 *ptr = '\0';
67 last = ptr;
74 if (ptr == normalized_path ||
75 (last == ptr - 2 && last[0] == '.' && last[1] == '.') ||
76 (last == ptr - 3 && last[0] == '/' &&
78 if (ptr != normalized_path && *(ptr - 1) != '/') {
79 *ptr = '/';
80 ptr++;
83 *ptr = '.';
84 ptr++;
85 *ptr = '.';
86 ptr++;
91 ptr = last + 1;
93 ptr = last;
96 *ptr = '\0';
98 if (ptr != normalized_path && *(ptr - 1) != '/') {
99 *ptr = '/';
100 ptr++;
103 memcpy(ptr, cur, cur_len);
104 ptr += cur_len;
105 *ptr = '\0';
113 if (ptr == normalized_path) {
115 *ptr = '/';
117 *ptr = '.';
119 ptr++;
120 *ptr = '\0';
131 char* ptr;
152 ptr = (char*) path + fd_path_len;
158 if (*ptr == '/') {
159 ptr++;
163 if ((remaining_len == 2 && ptr[0] == '.' && ptr[1] == '.') ||
164 (remaining_len > 2 && ptr[0] == '.' && ptr[1] == '.' && ptr[2] == '/')) {
461 input_len = strlen(req.ptr);
470 memcpy(link_target, req.ptr, input_len + 1);