Function: SB-ALIEN:MAKE-ALIEN-STRING

package type github

Copy part of STRING delimited by START and END into freshly allocated foreign memory, freeable using free(3) or FREE-ALIEN. Returns the allocated string as a (* CHAR) alien, and the number of bytes allocated as secondary value.

The string is encoded using EXTERNAL-FORMAT. If NULL-TERMINATE is true (the default), the alien string is terminated by an additional null byte.

Lambda list

(string &rest rest &key sb-alien::start sb-alien::end sb-alien::external-format
        sb-alien::null-terminate)