From: Georg Brandl Date: Tue, 29 Dec 2009 10:34:34 +0000 (+0000) Subject: #7569: clarification about c_char_p. X-Git-Tag: v2.7a2~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d2ff48602ac06882fbed6d50d9c345b33b11b739;p=thirdparty%2FPython%2Fcpython.git #7569: clarification about c_char_p. --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 1947cc38acb2..fd28976352f6 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