Lines Matching refs:ptr
53 char *ptr;
65 ptr = lhpstr;
66 optr = ptr;
67 ptr = strstr(optr, ":");
68 if (ptr != NULL) {
69 *ptr = '\0';
70 ptr++;
87 if (ptr == NULL || *ptr == '\0') {
91 while (*ptr != '\0') {
92 if (!isdigit(*ptr)) {
97 hport->port += (*ptr - '0');
98 ptr++;
118 char *ptr;
131 ptr = lurlstr;
132 if (strncmp(ptr, HTTP_SCHEME, strlen(HTTP_SCHEME)) == 0) {
133 ptr += strlen(HTTP_SCHEME);
135 } else if (strncmp(ptr, HTTPS_SCHEME, strlen(HTTPS_SCHEME)) == 0) {
136 ptr += strlen(HTTPS_SCHEME);
146 optr = ptr;
147 ptr = strstr(optr, "/");
148 if (ptr != NULL) {
149 *ptr = '\0';
166 if (ptr != NULL) {
167 *ptr = '/';
168 plen = strlcpy(url->abspath, ptr, sizeof (url->abspath));