useCString

inline fun <R> String?.useCString(block: (NativePointer) -> R): R

Calls block with a const char* copy of this string, valid for the call.