prelude.CStr

Part of prelude.

let CStr.as_string (self: CStr): String

A NUL-terminated C pointer copied into a Plum string. Only valid inside unsafe, and the pointer must really be NUL-terminated.

Implemented by the compiler itself, so it has no Plum source to read.