# SetMemblockString

## Description

Writes a string to a memblock as raw bytes. The first null terminator found will end the string and a single null terminator will be written to the memblock data. To read the string out of the memblock again you will need to know its length, so it is recommended that you also write a string length value before the string data to help read the string back later. The offset plus the length of the string, plus 1 for the null terminator, must be less than the memblock size.

## Definition

SetMemblockString( memID, offset, value )

void agk::SetMemblockString( UINT memID, UINT offset, const char* value )

## Parameters

- memID - The ID of the memblock to modify.
- offset - The offset from the start of the memblock to write to, between 0 and size.
- value - The string to write.