APPENDICES SECTION APPENDIX C

{

if((url[x] = url[y]) == '%')

{

url[x] = x2c(&url[y+1]); y+=2;

}

}

url[x] = '\0';

}

char x2c(char *what)

{

register char digit;

digit = (what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 : (what[0] - '0'));

digit *= 16;

digit += (what[1] >= 'A' ? ((what[1] & 0xdf) - 'A')+10 : (what[1] - '0'));

return(digit);

}

char *makeword(char *line, char stop)

{

int x = 0, y;

char *word = (char *) malloc(sizeof(char) * (strlen(line) +

1));

for(x=0;((line[x]) && (line[x] != stop));x++) word[x] = line[x];

word[x] = '\0'; if(line[x]) ++x; y=0;

while(line[y++] = line[x++]); return word;

}

void plustospace(char *str)

{

register int x;

for(x=0;str[x];x++) if(str[x] == '+')

str[x] = ' ';

}

char *fmakeword(FILE *f, char stop, int *cl)

420

8E6 TECHNOLOGIES, PROXYBLOCKER USER GUIDE

Page 434
Image 434
8e6 Technologies ProxyBlocker manual Ifurlx = urly == %