33 |
nread=read(*fd, buffer, 2**l_buffer); |
nread=read(*fd, buffer, 2**l_buffer); |
34 |
|
|
35 |
if( nread==0 ) { |
if( nread==0 ) { |
36 |
printf("dunpacker: Unexpected end of file %d at %d \n",*fd,nread); |
// printf("dunpacker: Unexpected end of file %d at %d \n",*fd,nread); |
37 |
*error=1; |
*error=1; |
38 |
return ; |
return ; |
39 |
} |
} |
40 |
if ( nread != 2**l_buffer) { |
if ( nread != 2**l_buffer) { |
41 |
printf("dunpacker: Error on reading: nread = %d \n",nread); |
// printf("dunpacker: Error on reading: nread = %d \n",nread); |
42 |
*error=-1; |
*error=-1; |
43 |
return ; |
return ; |
44 |
} |
} |