/*************************************************************** * * change the buffer from bytes to words to read the calorimeter * ***************************************************************/ /* * 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 */ void fillin_(int *m, int *lunga, int *lleng, int *lung, int *pari, short int *vect, char *vecta) { int i; int mleng; char tempv[*lung]; char tempv2[*lung]; memcpy(&tempv, &*vecta+*m-1, *lung-*m+1); for (i = 1; i < *lung-1; i=i+2){ tempv2[i-1]=tempv[i]; tempv2[i]=tempv[i-1]; }; *lleng = 0; memcpy(&*vect, &tempv2, (*lunga-*lleng)*2); }