in reply to Re: Re: Re: 64 bit pointer to string
in thread 64 bit pointer to string
Should I post in p5p?my $tocentry; my $toc=""; my $size=0; for(@tracks) { $toc.=" "; $size+=8; } if($os =~ /BSD/) { my $size_hi=int($size / 256); my $size_lo=$size & 255; if($BIG_ENDIAN) { # in 32bit: $tocentry=pack "CCCCP8l", $CDROM_MSF,0,$size_hi,$siz +e_lo,$toc; $tocentry=pack "CCCCP", $CDROM_MSF,0,$size_hi,$size_lo,$toc; # c +urrent version } else { $tocentry=pack "CCCCP8l", $CDROM_MSF,0,$size_lo,$size_hi,$toc; } ioctl(CD, $CDROMREADTOCENTRY, $tocentry) or die "cannot read track + info [$!] [$device]"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: 64 bit pointer to string
by BrowserUk (Patriarch) on Sep 06, 2003 at 11:35 UTC | |
by Anonymous Monk on Sep 06, 2003 at 17:29 UTC |