cstr_to_str

Declaration

cstr_to_str :: fn (cstr: *u8) string #inline

Description

Converts zero terminated C style string to BL string. New memory block to hold string’s content is allocated, call string_terminate when value is no longer needed.

Result

New string.

Declared in: utils.bl