OT: Altair emulator code & C pointers
At 01:46 PM 6/12/00 -0400, you wrote:
>> A possibly faster way to implement this loop is:
>>
>> memcpy(Mem + addr, pstrBuffer, iLength);
>
>Or, if it's binary, why not read directly into Mem and
>skip the extra buffer all together. Something like:
>
>fread (Mem + addr, 1, iLength, pFile);
>
I agree. I was going to suggest that but the original code
didn't show reading the data in so I didn't know if additional
checks were being made to insure it was valid before placing
it in "memory".
Regards,
Bob
Received on Mon Jun 12 2000 - 14:58:34 BST
This archive was generated by hypermail 2.3.0
: Fri Oct 10 2014 - 23:33:01 BST