Lines Matching defs:thost
478 char *cp, *ep, *thost;
521 thost = ftp_strdup(url);
524 thost = (char *)ftp_malloc(len + 1);
525 (void)strlcpy(thost, url, len + 1);
531 cp = strchr(thost, '@'); /* look for user[:pass]@ in URLs */
535 auth->user = thost;
537 thost = ftp_strdup(cp + 1);
550 * Check if thost is an encoded IPv6 address, as per
554 if (*thost == '[') {
555 cp = thost + 1;
559 thost, desc, origurl);
563 memmove(thost, thost + 1, len);
564 thost[len] = '\0';
565 if (! isipv6addr(thost)) {
567 thost, desc, origurl);
577 if ((cp = strchr(thost, ':')) != NULL)
579 if (*thost != '\0')
580 ui->host = thost;