| 20 |
void fillin_(int *m, int *lunga, int *lleng, int *lung, int *pari, short int *vect, char *vecta) |
void fillin_(int *m, int *lunga, int *lleng, int *lung, int *pari, short int *vect, char *vecta) |
| 21 |
{ |
{ |
| 22 |
int i; |
int i; |
| 23 |
|
int mleng; |
| 24 |
char tempv[*lung]; |
char tempv[*lung]; |
| 25 |
char tempv2[*lung]; |
char tempv2[*lung]; |
| 26 |
memcpy(&tempv, &*vecta+*m-1, *lung); |
memcpy(&tempv, &*vecta+*m-1, *lung-*m+1); |
| 27 |
for (i = 1; i < *lung-1; i=i+2){ |
for (i = 1; i < *lung-1; i=i+2){ |
| 28 |
tempv2[i-1]=tempv[i]; |
tempv2[i-1]=tempv[i]; |
| 29 |
tempv2[i]=tempv[i-1]; |
tempv2[i]=tempv[i-1]; |
| 30 |
}; |
}; |
| 31 |
|
*lleng = 0; |
| 32 |
memcpy(&*vect, &tempv2, (*lunga-*lleng)*2); |
memcpy(&*vect, &tempv2, (*lunga-*lleng)*2); |
| 33 |
} |
} |
| 34 |
|
|