summary refs log tree commit diff stats
path: root/note/wechat.html
diff options
context:
space:
mode:
author1337 h4xx0r <1337.h4xx0r@localhost>2023-07-27 13:14:07 +0000
committer1337 h4xx0r <1337.h4xx0r@localhost>2023-07-27 13:14:07 +0000
commit503607d887ba83dcf5505a283f4c35227b3552bd (patch)
tree058624fbf11a4c3d2925f38bc7b67490241d87ed /note/wechat.html
parent9f9fec2ece6ce6e25482643ba684b041c3162016 (diff)
downloadwww-503607d887ba83dcf5505a283f4c35227b3552bd.tar.gz
Andrew -> Runxi
Diffstat (limited to 'note/wechat.html')
-rw-r--r--note/wechat.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/note/wechat.html b/note/wechat.html
index 4727eb8..82bbac2 100644
--- a/note/wechat.html
+++ b/note/wechat.html
@@ -44,7 +44,7 @@
 
 		<div id="footer">
 			<hr />
-			<p><a href="/">Andrew Yu's Website</a></p>
+			<p><a href="/">Runxi Yu's Website</a></p>
 		</div>
 	</body>
 </html>
0-06 04:08:00 -0400 committer Thomas E. Dickey <dickey@invisible-island.net> 1997-10-06 04:08:00 -0400 snapshot of project "lynx", label v2-7-1ac_0-76' href='/ingrix/lynx-snapshots/commit/WWW/Library/Implementation/HTDOS.c?id=1d80538b4b84eadd223c7b61839b950389c2d49d'>1d80538b ^
349da2fb ^
1d80538b ^

349da2fb ^
1d80538b ^

d3f9d547 ^
1d80538b ^
8bccca15 ^

e4409c40 ^
8bccca15 ^


e4409c40 ^
8bccca15 ^

e4409c40 ^
8bccca15 ^



e4409c40 ^
8bccca15 ^
1d80538b ^


349da2fb ^

1d80538b ^
349da2fb ^
1d80538b ^

349da2fb ^
1d80538b ^
d3f9d547 ^
349da2fb ^
8bccca15 ^


e4409c40 ^
8bccca15 ^
e4409c40 ^
8bccca15 ^


e4409c40 ^
8bccca15 ^
e4409c40 ^
8bccca15 ^
18024037 ^
8bccca15 ^


e4409c40 ^
8bccca15 ^

e4409c40 ^
8bccca15 ^







e4409c40 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
                                    


   

                    
 











                                                                        

                                                                               
            
                                                        

           
                                              

  
                                           
 

                                                
 


                                                                      
 

                                             
 



                        
 
                    


 

                                                                            
            
                                     

           
                                              
  
                                        
 


                        
 
                                
 


                                                 
         
     
 
                                                   
 


                                                   
 

                                                  
 







                                                                      
 
/*	       DOS specific routines

 */

#include <HTUtils.h>
#include <HTDOS.h>

/*
 * Make a copy of the source argument in the result, allowing some extra
 * space so we can append directly onto the result without reallocating.
 */
PRIVATE char * copy_plus ARGS2(char **, result, char *, source)
{
    int length = strlen(source);
    HTSprintf0(result, "%-*s", length+10, source);
    (*result)[length] = 0;
    return (*result);
}

/* PUBLIC							HTDOS_wwwName()
**		CONVERTS DOS Name into WWW Name
** ON ENTRY:
**	dosname 	DOS file specification (NO NODE)
**
** ON EXIT:
**	returns 	WWW file specification
**
*/
char * HTDOS_wwwName ARGS1(char *, dosname)
{
    static char *wwwname;
    char *cp_url = copy_plus(&wwwname, dosname);

    for ( ; *cp_url != '\0' ; cp_url++)
	if(*cp_url == '\\')
	    *cp_url = '/';   /* convert dos backslash to unix-style */

    if(strlen(wwwname) > 3 && *cp_url == '/')
	*cp_url = '\0';

    if(*cp_url == ':') {
	cp_url++;
	*cp_url = '/';
    }

    return(wwwname);
}


/* PUBLIC							HTDOS_name()
**		CONVERTS WWW name into a DOS name
** ON ENTRY:
**	wwwname 	WWW file name
**
** ON EXIT:
**	returns 	DOS file specification
*/
char * HTDOS_name ARGS1(char *, wwwname)
{
    static char *cp_url;
    char *result;
    int joe;

    copy_plus(&cp_url, wwwname);

    for (joe = 0; cp_url[joe] != '\0'; joe++)	{
	if (cp_url[joe] == '/')	{
	    cp_url[joe] = '\\';
	}
    }

    /* Needed to surf the root of a local drive. */

    if(strlen(cp_url) < 4) cp_url[2] = ':';
    if(strlen(cp_url) == 3) strcpy(cp_url+3, "\\");
    if(strlen(cp_url) == 4) strcpy(cp_url+4, ".");

    if((strlen(cp_url) > 2) && (cp_url[1] == '|'))
	cp_url[1] = ':';

    if((cp_url[1] == '\\') || (cp_url[0]  != '\\')) {
	result = cp_url;
    } else {
	result = cp_url+1;
    }

    CTRACE(tfp, "HTDOS_name changed `%s' to `%s'\n", wwwname, result);
    return (result);
}