Lines Matching defs:ptr
156 char buf[ 1024 ], *ptr;
185 char *host, *ptr, *pass;
207 if( (ptr = strchr( host, '/' )) != NULL ) {
208 mi->rpath = strdup( ptr );
209 *ptr = '\0';
215 if( (ptr = strchr( host, '@' )) != NULL ) {
216 *ptr++ = '\0';
223 host = ptr;
227 if( (ptr = strchr( host, ':' )) != NULL ) {
228 *ptr++ = '\0';
229 mi->port = (int)strtol(ptr, (char**)0, 0);
304 char *ptr, *url, *urlend;
307 ptr = lpath;
310 if (!(ptr = strchr(ptr, ':')))
312 if (ptr[1] == '/')
314 if (ptr[2])
318 ptr++;
320 urlend = strchr( ptr+2, '/' );
321 while( *ptr != '/' )
322 if( ptr-- <= lpath ) {
328 url = ptr+1;