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

ctypes.c_int16

Prev: ctypes.c_int | Up: ctypes | Next: ctypes.c_int32
Rel: ctypes.addressof, ctypes.alignment, ctypes.ArgumentError, ctypes.Array
Ref: docs.python.org — ctypes.c_int16
Tags: #public #python3 #stdlib #ctypes


Import

import ctypes
from ctypes import c_int16

Signature & Overview

ctypes.c_int16(...)

ctypes.c_int16 class.

Usage

import ctypes

n = ctypes.c_int16(-1000)
assert n.value == -1000 and ctypes.sizeof(n) == 2

Gotchas

REPL Inspect

from ctypes import c_int16
help(c_int16)

Linked from

Related notes