gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1617 Posts in 535 Topics by 779 Members - Latest Member: rhoronjeff@comcast.net December 01, 2022, 07:36:38 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  General  |  How to implement memory initialize - memset?
gfx
gfxgfx
 

Author Topic: How to implement memory initialize - memset?  (Read 745 times)

Mike Linacre

  • Sr. Member
  • ****
  • Posts: 259
How to implement memory initialize - memset?
« 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

Mike Linacre

  • Sr. Member
  • ****
  • Posts: 259
Re: How to implement memory initialize - memset?
« Reply #1 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)



Absoft User Forum  |  Support  |  General  |  How to implement memory initialize - memset?
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!