buffer_to_string

buffer_to_string — converts a buffer to a string.

Syntax

buffer_to_string (buffer)

		

Arguments

buffer

A buffer.

Returns

A string representing the contents of the given buffer up to the first zero character, or nil if the argument is not a buffer.

Description

This function converts the buffer into a string by treating each element in the buffer as a single character. The first zero character in the buffer terminates the string.

Example

Gamma> x = buffer(104,101,108,108,111);
#{hello}
Gamma> buffer_to_string(x);
"hello"
Gamma> 
		

See Also

buffer