On 12/01/2022 18:22, tom ehlert wrote:
You might want to try uHex. Requires some 20 KiB of RAM and handles
files up to 2 GiB.

use int 21, 6C EXTENDED OPEN/CREATE and you can handle 4GiB.

Sure, but that's not very portable code. And it is not enough anyway. To handle 4 GB one would also need to:
 - replace all 'long' position tracking variables by unsigned long
 - handle errors in a different way (than passing -1)
 - use a non-portable construct to replace fseek()
 - and probably more that I don't think about right away

Mateusz


_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to