[][src]Function dart_sys::Dart_StringToCString

pub unsafe extern "C" fn Dart_StringToCString(
    str: Dart_Handle,
    cstr: *mut *const c_char
) -> Dart_Handle

Gets the C string representation of a String. (It is a sequence of UTF-8 encoded values with a '\0' termination.)

\param str A string. \param cstr Returns the String represented as a C string. This C string is scope allocated and is only valid until the next call to Dart_ExitScope.

\return A valid handle if no error occurs during the operation.