diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-11-06 16:18:09 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-11-06 16:18:09 -0500 |
commit | 18024037b515bfff83e0230b35151babe6005e18 (patch) | |
tree | b8c80055282a00883284722a3dd6bb25234e07f0 /WWW/Library/Implementation/HTDOS.c | |
parent | 3d8ecbe48af249fa0d77ce4d273e32ce4b7e6e18 (diff) | |
download | lynx-snapshots-18024037b515bfff83e0230b35151babe6005e18.tar.gz |
snapshot of project "lynx", label v2-8-1dev_4
Diffstat (limited to 'WWW/Library/Implementation/HTDOS.c')
-rw-r--r-- | WWW/Library/Implementation/HTDOS.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/WWW/Library/Implementation/HTDOS.c b/WWW/Library/Implementation/HTDOS.c index 2004f97b..5e22915b 100644 --- a/WWW/Library/Implementation/HTDOS.c +++ b/WWW/Library/Implementation/HTDOS.c @@ -2,8 +2,9 @@ */ -#include <HTUtils.h> -#include <HTDOS.h> +#include <mem.h> +#include <dos.h> + /* PUBLIC HTDOS_wwwName() ** CONVERTS DOS Name into WWW Name @@ -66,11 +67,10 @@ char * HTDOS_name(char *wwwname) } } - /* Needed to surf the root of a local drive. */ - - if(strlen(cp_url) < 4) cp_url[2] = ':'; +/* if(strlen(cp_url) < 4) cp_url[] = ':'; if(strlen(cp_url) == 3) cp_url[3] = '\\'; - if(strlen(cp_url) == 4) cp_url[4] = '.'; + + if(strlen(cp_url) == 4) cp_url[4] = '.'; */ if((strlen(cp_url) > 2) && (cp_url[1] == '|')) cp_url[1] = ':'; @@ -81,18 +81,14 @@ char * HTDOS_name(char *wwwname) printf("\n\n%s = i%\n\n",cp_url,strlen(cp_url)); sleep(5); #endif - CTRACE(tfp, "HTDOS_name changed `%s' to `%s'\n", - wwwname, cp_url); strcpy(wwwname, cp_url); - return(wwwname); /* return(cp_url); */ + return(wwwname); /* return(cp_url); */ } else { #if 0 printf("\n\n%s = %i\n\n",cp_url+1,strlen(cp_url)); sleep(5); #endif - CTRACE(tfp, "HTDOS_name changed `%s' to `%s'\n", - wwwname, cp_url+1); strcpy(wwwname, cp_url+1); - return(wwwname); /* return(cp_url+1); */ + return(wwwname); /* return(cp_url+1); */ } } |