Commit 80fb8148 authored by gabrieldemarmiesse's avatar gabrieldemarmiesse

Mentioned in the docs that converting a python bytes string to char* gives a...

Mentioned in the docs that converting a python bytes string to char* gives a null terminated string.
parent 084a25f5
...@@ -164,7 +164,7 @@ the assignment in a try-finally construct: ...@@ -164,7 +164,7 @@ the assignment in a try-finally construct:
To convert the byte string back into a C :c:type:`char*`, use the To convert the byte string back into a C :c:type:`char*`, use the
opposite assignment:: opposite assignment::
cdef char* other_c_string = py_string cdef char* other_c_string = py_string # other_c_string is a 0-terminated string.
This is a very fast operation after which ``other_c_string`` points to This is a very fast operation after which ``other_c_string`` points to
the byte string buffer of the Python string itself. It is tied to the the byte string buffer of the Python string itself. It is tied to the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment