/[global]/global/htags/common.c
ViewVC logotype

Diff of /global/htags/common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by shigio, Sat Apr 2 01:27:52 2005 UTC revision 1.20 by shigio, Sun Apr 3 10:32:23 2005 UTC
# Line 566  is_binary(path) Line 566  is_binary(path)
566          }          }
567          return 0;          return 0;
568  }  }
 /*  
  * Encode URL.  
  *  
  *      i)      url     URL  
  *      r)              encoded URL  
  */  
 char *  
 encode(url)  
         char *url;  
 {  
         STATIC_STRBUF(sb);  
         char *p;  
   
         strbuf_init(sb);  
         for (p = url; *p; p++) {  
                 int c = (unsigned char)*p;  
   
                 if (isalnum(c))  
                         strbuf_putc(sb, c);  
                 else  
                         strbuf_sprintf(sb, "%%%02x", c);  
         }  
   
         return strbuf_value(sb);  
 }  

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26