> Am 18.05.2025 um 15:37 schrieb Eric Auer via Freedos-devel 
> <freedos-devel@lists.sourceforge.net>:
> 
>> - fix edit not being able to save a file of zero size
> 
> ...
> 
>> The following still applies:
> ...
>> - EDIT always appends a NL character to the last line when
>>   editing it
> 
> So how does one type an empty file at the moment? :-)

To elaborate this further: The problem with the code was that it tested for 
"elements written == 0" as an error condition after the fwrite call. However, 
if file size is 0 bytes, this test yields a false positive.



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

Reply via email to