Lines Matching refs:thost
327 char *cp, *ep, *thost;
374 thost = ftp_strdup(url);
377 thost = (char *)ftp_malloc(len + 1);
378 (void)strlcpy(thost, url, len + 1);
384 cp = strchr(thost, '@'); /* look for user[:pass]@ in URLs */
388 *uuser = thost;
390 thost = ftp_strdup(cp + 1);
403 * Check if thost is an encoded IPv6 address, as per
407 if (*thost == '[') {
408 cp = thost + 1;
412 thost, desc, origurl);
416 memmove(thost, thost + 1, len);
417 thost[len] = '\0';
418 if (! isipv6addr(thost)) {
420 thost, desc, origurl);
430 if ((cp = strchr(thost, ':')) != NULL)
432 *host = thost;