1 |
mocchiut |
1.1 |
/*************************************************************** |
2 |
|
|
* |
3 |
|
|
* change the buffer from bytes to words to read the calorimeter |
4 |
|
|
* |
5 |
|
|
***************************************************************/ |
6 |
|
|
/* |
7 |
|
|
* include needed system headers |
8 |
|
|
*/ |
9 |
|
|
#include <iostream.h> /* include standard i/o library */ |
10 |
|
|
#include <vector.h> |
11 |
|
|
|
12 |
|
|
void azero_(int *vetto, int *lung) |
13 |
|
|
{ |
14 |
|
|
vector<int> v( *lung ); |
15 |
|
|
memcpy(&v, &*vetto, *lung); |
16 |
|
|
if ( !v.empty() ) { |
17 |
|
|
v.clear(); |
18 |
|
|
memcpy(&*vetto, &v, *lung); |
19 |
|
|
} |
20 |
|
|
} |
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|