# GetMemblockString

## Description

Returns a given number of bytes at the given offset and interprets them as a string. The offset plus length must be less than the size of the memblock. The first value is at offset 0. The string will be null terminated even if no null terminator is found in the memblock. If a null terminator occurs before length is reached then all the bytes will still be read, but only the characters up to the first null terminator will be accessible in AGK. If you are using tier 2 you must delete the pointer returned from this function.

## Definition

string GetMemblockString( memID, offset, length )

char* agk::GetMemblockString( UINT memID, UINT offset, UINT length )

## Parameters

- memID - The ID of the memblock to check.
- offset - The offset from the start of the memblock of the value to return, between 0 and size.
- length - The number of bytes to read