Get a NULL terminated string from memory.
──────────────────────────────────────────────────────────────────────────────
Syntax
GT_PeekStZ(<nSegment>,<nOffset>) --> cString
Arguments:
<nSegment> is the segment of the string in memory.
<nOffset> is the offset of the string in memory.
Returns:
The NULL terminated string found at <nSegment>:<nOffset>.
Description:
GT_PeekStZ() can be used for getting NULL terminated strings from
specific areas of memory.
Examples:
// Print the first entry in the program's environment table.
? GT_PeekStZ(GT_PeekW(GT_PSPSeg(),44),0)
Source: PEEKSTRZ.C
Author: David Pearson