On 23-Dec-97, Kurt Kuzba wrote to Paul Poloskov about File-Working 2.
KK> Your block read can do this in C also. You only need to specify
KK> that it read that much fread(ff, sizeof(my), 1, my_file); This
KK> will read a block the size of the struct called my into the memory
KK> reserved for the struct labeled ff. I am assuming that you are
But you must be careful about paddings inside the structure... it can
change from compilation to compilation when you use the correct switches.
Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org
+4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9*
.!. "Call it a hunch." -- Quasimodo
--- Terminate 5.00/Pro
---------------
* Origin: The King of The Ring (4:900/748.3)
|