StoreC
See Also: Memory Management Functions
Purpose
Places a one byte value in memory using its address and an offset.
Return Type
Syntax
(StoreC( {pMemory}, {iOffset}, {iValue} ))
Parameters
- {pMemory}: A Pointer variable that is set equal to the block of memory.
- {iOffset}: An integer variable that contains the offset within the block of memory where the value will be stored.
- {iValue}: The value that will be stored.
What It Does
Stores the given value, {iValue}, in one byte of a memory block using its address and a given offset. Using the StoreC function with invalid parameters will likely cause your program to crash.
Example
Function PutMemoryByte Address aPointer Integer iOffset Integer iValue Returns Boolean
Boolean bResult
Move (StoreC(aPointer, iOffset, iValue)) to bResult
Function_Return bResult
End_Function