MCPcopy Index your code
hub / github.com/dgrunwald/rust-cpython / PyString_AS_STRING

Function PyString_AS_STRING

python27-sys/src/stringobject.rs:44–46  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

42
43#[inline(always)]
44pub unsafe fn PyString_AS_STRING(op: *mut PyObject) -> *mut c_char {
45 (*(op as *mut PyStringObject)).ob_sval.as_mut_ptr()
46}
47
48#[cfg_attr(windows, link(name = "pythonXY"))]
49extern "C" {

Callers 1

PyExceptionClass_NameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected