1 |
pam-fi |
1.1 |
//Cut file determination/////////////////////////////// |
2 |
|
|
#include "descript.h" |
3 |
|
|
|
4 |
|
|
int restrict(int buffer3[], long long int numP[], int Rout) |
5 |
|
|
{ |
6 |
|
|
int i; |
7 |
|
|
int counter=0; |
8 |
|
|
for (i=7;i<1017;i++) |
9 |
|
|
{ |
10 |
|
|
if ((buffer3[i]==(int)(CODE1)&&buffer3[i+1]==(int)(CODE2)&& buffer3[i+2]==(int)(CODE3)&&buffer3[i+3]==Rout&&numP[2]==numP[1]+1)|| |
11 |
|
|
(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)) |
13 |
|
|
{counter=i;} |
14 |
|
|
} |
15 |
|
|
return counter; |
16 |
|
|
} |