W
EB
F
ILTER
A
PPENDICES
S
ECTION
A
PPENDIX
B
M86 S
ECURITY
U
SER
G
UIDE
449
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)
{
int wsize;
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)
{
word[ll+1] = '\0';
wsize+=102400;
word = (char
*)realloc(word,sizeof(char)*(wsize+1));
}
--(*cl);
if((word[ll] == stop) || (feof(f)) || (!(*cl)))
{
if(word[ll] != stop)
ll++;
Содержание M86 Threat Analysis Reporter
Страница 1: ...M86 Web Filtering and Reporting Suite USER GUIDE Software Version 4 2 00 Document Version 10 10 11...
Страница 28: ...CONTENTS xxviii M86 SECURITY USER GUIDE INDEX 887...
Страница 518: ...WEB FILTER APPENDICES SECTION APPENDIX D 490 M86 SECURITY USER GUIDE Fig D 20 Mobile Client Package Contents page...
Страница 938: ...INDEX 910 M86 SECURITY USER GUIDE...