Notice that as_ptr returns a read-only pointer; if the C code writes to it, that causes undefined behavior. Extracting a slice of the whole C string.
確定! 回上一頁