On this page
  1. ctypes.c_char
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

ctypes.c_char

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


Import

import ctypes
from ctypes import c_char

Signature & Overview

ctypes.c_char(...)

ctypes.c_char class.

Usage

import ctypes

c = ctypes.c_char(b"A")
assert c.value == b"A"

Gotchas

REPL Inspect

from ctypes import c_char
help(c_char)

Linked from

Related notes