CALL "M$PUT" USING memAddress dataItem [dataSize] [dataOffset] |
memAddress | USAGE POINTER | Specifies the handle to the destination memory region. Note - compile with the -cp option if you need to share the memory with external C routines. |
dataItem | PIC X(n) | Specifies the content of memory region pointed by memAddress. |
dataSize | any numeric data item or numeric literal | Specifies the number of bytes to be moved from dataItem. If this parameter is omitted, the entire content of dataItem is copied. |
dataOffset | any numeric data item or numeric literal | Specifies the memory offset from which the data will be copied from. The default value is 1. |
*> define mem1 usage pointer call "m$alloc" using 8, mem1 call "m$put" using mem1, "Hello", 8, 1 |