[Info-vax] fixing a saveset's attributes: attachment, not ftp

John Reagan xyzzy1959 at gmail.com
Tue Jun 23 16:52:46 EDT 2015


On Tuesday, June 23, 2015 at 4:43:41 PM UTC-4, Stephen Hoffman wrote:

> 
> If you're inclined to do this the easy way, simply map the first eight 
> 512-byte blocks into virtual memory (if you really want to see 4096 
> bytes of stuff), and go rummage through virtual memory.
> 
> The C mmap() call is simple, or you can use $crmpsc or such if you 
> wanted to work a little more.
> 


Or you can do:


fopen(filename,"rb");
fseek to the offset you want
fread a bunch of bytes into a buffer you allocate




More information about the Info-vax mailing list