[fpc-pascal] Get empty memory quickly or... an empty file

Reinier Olislagers reinierolislagers at gmail.com
Fri Sep 13 15:38:57 CEST 2013


On 13/09/2013 15:12, Ewald wrote:
> Once upon a time, Reinier Olislagers said:
>>
>> However, I'm sure there must be quicker ways (e.g. less newbie code;
>> using OS functions to quickly create empty memor, or alternatively
>> create a sparse file and zip the file instead of the stream).
> Have you tried FillChar(), FillDWord(), ... I not, have a look at
> http://www.freepascal.org/docs-html/rtl/system/fillchar.html
> 

Arggh. Thanks!
Have even used FillChar yesterday or the day before. Just getting a bit
too numb I suppose.



More information about the fpc-pascal mailing list