1 |
//Cut file determination/////////////////////////////// |
//Cut file determination/////////////////////////////// |
2 |
#include "descript.h" |
#include "descript.h" |
3 |
|
#include "flag.h" |
4 |
|
|
5 |
int restrict(int buffer3[], long long int numP[], int Rout) |
int restrict(int buffer3[], long long int numP[], int Rout) |
6 |
{ |
{ |
8 |
int counter=0; |
int counter=0; |
9 |
for (i=7;i<1017;i++) |
for (i=7;i<1017;i++) |
10 |
{ |
{ |
11 |
if ((buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout&&numP[2]==numP[1]+1)|| |
if ((buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout)|| |
|
(buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout&&numP[2]==numP[0]+2)|| |
|
12 |
(buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&numP[2]==1)) |
(buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&numP[2]==1)) |
13 |
{counter=i;} |
{counter=i;} |
14 |
} |
} |