Next: , Previous: Shell-related Utilities, Up: Top

9 Strings

text buffers which grow automatically as text is added.

9.1 Overview

A <g-string> is similar to a standard C string, except that it grows automatically as text is appended or inserted. Also, it stores the length of the string, so can be used for binary data with embedded nul bytes.

9.2 Usage

— Function: g-string-new (init mchars) ⇒  (ret <g-string*>)

Creates a new <g-string>, initialized with the given string.

the initial text to copy into the string.
the new <g-string>.
— Function: g-string-get-str (string <g-string*>) ⇒ (chars mchars)

Retrieves the contents of string as a Scheme string.