/*************************************************************** * * routine read_ev: routine to extract an event information * from file acquired with Pamela acquisition programs * * June 2002 * ***************************************************************/ /* * include needed system headers */ #include /* include standard i/o library */ #include /* include standard library */ #include /* include string library */ #include /* include unix standard library */ #include /* */ #include /* */ #include /* */ #include /* error simbol definitions */ #include /* system time definitions */ #include /* math library */ #include "CRC.h" //extern "C" { extern struct { unsigned char buffer[16]; } header_; void data2ntp_(); //Struct per il passaggio di dati da e verso la chiamata fortran //} void testcrc_(unsigned char *crc, int *error) { int i,j; unsigned char ubuffer; unsigned char calcrc; unsigned char buff2[16]; *error = 1; j = 0; for (i = 0; i < 16; i++){ // memcpy(&ubuffer<