29 |
nhead = 13; /* packed */ |
nhead = 13; /* packed */ |
30 |
nread=read(*fd, buffer_temp, 2*nhead); |
nread=read(*fd, buffer_temp, 2*nhead); |
31 |
if( nread==0 ) { |
if( nread==0 ) { |
32 |
printf("hunpacker: Unexpected end of file %d at %d \n",*fd,nread); |
//printf("hunpacker: Unexpected end of file %d at %d \n",*fd,nread); |
33 |
*error=1; |
*error=1; |
34 |
return ; |
return ; |
35 |
} |
} |
36 |
if ( nread != 2*nhead) { |
if ( nread != 2*nhead) { |
37 |
printf("hunpacker: Error on reading: nread = %d \n",nread); |
//printf("hunpacker: Error on reading: nread = %d \n",nread); |
38 |
*error=-1; |
*error=-1; |
39 |
return ; |
return ; |
40 |
} |
} |