String@

Result = String@ ( Pointer AS Pointer )

Return the zero-terminated string located at a given memory address as a Gambas constant string.

If Pointer points at a memory allocation returned by Alloc, do not free the allocation before you end dealing with the string.

If Pointer points at an unreadable memory address, then NULL is returned.

String@ (2)

Result = String@ ( Pointer AS Pointer , Length AS Integer )

Returns a string located at a given memory address as a constant string. The string length is given by the Length argument.

See also