StrAllocCat(*href, (HTVMS_wwwName((char *)Home_Dir())+1));
StrAllocCat(*href, (HTVMS_wwwName(Home_Dir())+1));
PUBLIC void LYFillLocalFileURL ARGS2(	char **,	href,	CONST char *, 	base){    char * temp = NULL;    if (*href == NULL || *(*href) == '\0')	return;    if (!strcmp(*href, "//") || !strncmp(*href, "///", 3)) {	if (base != NULL && !strncmp(base, "file:", 5)) {	    StrAllocCopy(temp, "file:");	    StrAllocCat(temp, *href);	    StrAllocCopy(*href, temp);	}    }    if (!strncmp(*href, "file:", 5)) {	if (*(*href+5) == '\0') {	    StrAllocCat(*href, "//localhost");	} else if (!strcmp(*href, "file://")) {	    StrAllocCat(*href, "localhost");	} else if (!strncmp(*href, "file:///", 8)) {	    StrAllocCopy(temp, (*href+7));	    LYLocalFileToURL (href, temp);	} else if (!strncmp(*href, "file:/", 6) && !LYIsHtmlSep(*(*href+6))) {	    StrAllocCopy(temp, (*href+5));	    LYLocalFileToURL (href, temp);	}    }#if defined(DOSPATH) || defined(__EMX__)    if (isalpha(*(*href)) && (*(*href+1) == ':'))  {	/*	 * If it's a local DOS path beginning with drive letter,	 * add file://localhost/ prefix and go ahead.	 */	StrAllocCopy(temp, *href);	LYLocalFileToURL (href, temp);    }    /* use below: strlen("file://localhost/") = 17 */    if (!strncmp(*href, "file://localhost/", 17)	  && (strlen(*href) == 19)	  && isalpha(*(*href+17))	  && (*(*href+18) == ':')) {	/*	 * Terminate DOS drive letter with a slash to surf root successfully.	 * Here seems a proper place to do so.	 */	StrAllocCat(*href, "/");    }#endif /* DOSPATH */    /*     * No path in a file://localhost URL means a     * directory listing for the current default. - FM     */    if (!strcmp(*href, "file://localhost")) {	char *temp2;#ifdef VMS	temp2 = HTVMS_wwwName(getenv("PATH"));#else	char curdir[LY_MAXPATH];	temp2 = wwwName(Current_Dir(curdir));#endif /* VMS */	LYAddHtmlSep(href);	/*	 *  Check for pathological cases - current dir has chars which	 *  MUST BE URL-escaped - kw	 */	if (strchr(temp2, '%') != NULL || strchr(temp2, '#') != NULL) {	    FREE(temp);	    temp = HTEscape(temp2, URL_PATH);	    StrAllocCat(*href, temp);	} else {	    StrAllocCat(*href, temp2);	}    }#ifdef VMS    /*     * On VMS, a file://localhost/ URL means     * a listing for the login directory. - FM     */    if (!strcmp(*href, "file://localhost/"))	StrAllocCat(*href, (HTVMS_wwwName((char *)Home_Dir())+1));#endif /* VMS */    FREE(temp);    return;}