/[PAMELA software]/rawreader/src/Trunc.cpp
ViewVC logotype

Annotation of /rawreader/src/Trunc.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Dec 10 12:21:25 2006 UTC (17 years, 11 months ago) by cafagna
Branch: MAIN
CVS Tags: v1r15, v1r14, v1r13, v1r12, HEAD
Changes since 1.1: +2 -2 lines
*** empty log message ***

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

  ViewVC Help
Powered by ViewVC 1.1.23