2.8 Data types

The Hollywood SDK defines a few additional data types that are often used by its functions. They are all defined in <hollywood/types.h>. Here is a brief overview:

APTR:
The arbitrary pointer. This is used to declare pointers to memory buffers that contain data of various sizes. The C equivalent to the APTR is the void pointer.

STRPTR:
The string pointer. This data type is used to refer to null-terminated strings. See Unicode support for details.

UBYTE:
This data type is used for an unsigned byte (8-bit).

UWORD:
This data type is used for an unsigned word (16-bit).

ULONG:
This data type is used for an unsigned long-word (32-bit).

DOSINT64:
This is a platform-dependent data type for IO functions that deal with 64-bit integers. On platforms that support 64-bit file IO, this is set to a signed 64-bit quantity whereas on platforms that do not support 64-bit file IO, e.g. AmigaOS 3.x, this is set to a signed 32-bit quantity, limiting large file support to 2 gigabytes.

IPTR:
An unsigned integer that is large enough to hold a pointer. This is 4 bytes on 32-bit systems and 8 bytes on 64-bit systems.


Show TOC