M86 Security Web Filter HL User Manual page 462

Table of Contents

Advertisement

A
S
PPENDICES
ECTION
442
A
B
PPENDIX
char *word;
int ll;
wsize = 102400;
ll=0;
word = (char *) malloc(sizeof(char) * (wsize + 1));
while(1)
{
word[ll] = (char)fgetc(f);
if(ll==wsize)
{
*)realloc(word,sizeof(char)*(wsize+1));
}
--(*cl);
if((word[ll] == stop) || (feof(f)) || (!(*cl)))
{
}
++ll;
}
}
/* to_upper:
* Change the string to upper case
*/
int to_upper(char *string)
{
int len;
int i;
char *tmp=NULL;
if (string && strlen(string))
{
if (!(tmp=(char*)strdup(string)))
return 0;
len=strlen(string);
for (i=0; i<len; i++)
{
string[i]=toupper(tmp[i]);
}
free(tmp);
}
return 1;
word[ll+1] = '\0';
wsize+=102400;
word = (char
if(word[ll] != stop)
ll++;
word[ll] = '\0';
return word;
M86 S
U
G
ECURITY
SER
UIDE

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Web Filter HL and is the answer not in the manual?

This manual is also suitable for:

Web filter slWeb filter msa

Table of Contents