[Overview][Types][Procedures and functions][Index] Reference for unit 'ctypes' (#rtl)

Reference for unit 'ctypes'

Common C type definitions

uses

  System,

  

The system unit

  unixtype;

  

Basic unix types

Overview

The ctypes unit contains the definitions of commonly found C types. It can be used when interfaces to C libraries need to be defined. The types here are correct on all platforms, 32 or 64 bit.

The main advantage of using this file is to make sure that all C header import units use the same definitions for basic C types.

The h2pas program can include the ctypes unit automatically in the units it generates. The -C command-line switch can be used for this.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.