Absoft User Forum

Support => General => Topic started by: Mike Linacre on June 02, 2022, 08:15:09 PM

Title: How to implement memory initialize - memset?
Post by: Mike Linacre on June 02, 2022, 08:15:09 PM
Hi Folks:

Need to initialize gigabyte blocks of memory multiple times, so am looking to implement memset (RtlFillMemory) in Absoft Fortran. Suggestions how to do that?
Thanks
Title: Re: How to implement memory initialize - memset?
Post by: Mike Linacre on June 02, 2022, 11:21:16 PM
Solved :

Add library: kernel32. lib

Interface RtlFillMemory
STDCALL SUBROUTINE RtlFillMemory (memorystart, memorylength, bytecharacter)
....
END SUBROUTINE RtlFillMemory

CALL RtlFillMemory (memorystart, memorylength, bytecharacter)