Useful ftell, commented out.

This commit is contained in:
ehouse 2009-03-29 18:13:09 +00:00
parent 9e5b3f8f29
commit 8dca48b3ea

View file

@ -28,6 +28,9 @@ my $gDoRaw = 0;
my $gFileType;
my $gNodeSize;
use Fcntl 'SEEK_CUR';
sub systell { sysseek($_[0], 0, SEEK_CUR) }
sub usage() {
print STDERR "USAGE: $0 "
. "[-raw] "
@ -177,8 +180,10 @@ sub prepXWD($$$$) {
getSpecials( $fh, $nSpecials, \@specials );
mergeSpecials( $facRef, \@specials );
# printf STDERR "at 0x%x before offset read\n", systell($fh);
sysread( $fh, $buf, 4 );
$$startRef = unpack( 'N', $buf );
# print STDERR "startRef=$$startRef\n";
my @nodes = readNodesToEnd( $fh );