Skip to content

string_new_cstr

Declaration

string_new_cstr :: fn (cstr: *u8) string

Description

Create new dynamic string from C zero terminated string. This instance must be freed by string_delete call.

Arguments

  • cstr C zero terminated string.

Result

New string.

Declared in: string.bl