diff options
author | Georg Brandl <georg@python.org> | 2009-12-29 10:34:34 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-12-29 10:34:34 (GMT) |
commit | d2ff48602ac06882fbed6d50d9c345b33b11b739 (patch) | |
tree | d8a4faed0b8ad5d09ff5647d773bde1694a28af6 | |
parent | b598393bcbd581871dc7b93a370af48a2589e06a (diff) | |
download | cpython-d2ff48602ac06882fbed6d50d9c345b33b11b739.zip cpython-d2ff48602ac06882fbed6d50d9c345b33b11b739.tar.gz cpython-d2ff48602ac06882fbed6d50d9c345b33b11b739.tar.bz2 |
#7569: clarification about c_char_p.
-rw-r--r-- | Doc/library/ctypes.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 1947cc3..fd28976 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -2163,8 +2163,10 @@ These are the fundamental ctypes data types: .. class:: c_char_p - Represents the C char \* datatype, which must be a pointer to a zero-terminated - string. The constructor accepts an integer address, or a string. + Represents the C char \* datatype when it points to a zero-terminated + string. For a general character pointer that may also point to binary data, + ``POINTER(c_char)`` must be used. The constructor accepts an integer + address, or a string. .. class:: c_double |