On this page
  1. ctypes.c_char_p
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

ctypes.c_char_p

Prev: ctypes.c_char | Up: ctypes | Next: ctypes.c_double
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.c_char_p
Tags: #public #python3 #stdlib #ctypes


Import

import ctypes
from ctypes import c_char_p

Signature & Overview

ctypes.c_char_p(...)

ctypes.c_char_p class.

Methods & Attributes

Usage

import ctypes

p = ctypes.c_char_p(b"hello")
assert p.value == b"hello"

Gotchas

REPL Inspect

from ctypes import c_char_p
help(c_char_p)

Linked from

Related notes