68
MDlib API Types
The standard C types of
different things to different compilers and machine types.
The MDlib API types, however, are strictly defined as
signed or unsigned and by byte size, as shown below.
Size
1 byte
2 bytes
4 bytes
4 bytes
4 bytes
8 bytes
A
zero (
A
DVoid
DError
functions that might fail.
MDlib API Types
Signed
DChar
DShort
DLong
DBool
DFloat
DDouble
value can have one of two values: either
DBool
) or nonzero (
FALSE
value is equivalent to the C type
DVoid
is a return value, it returns nothing.
values, shown below, are the return values of
#define D_OK
#define DMD_ERROR_BAD_VALUE
#define DMD_ERROR_BAD_DEVICE
#define DMD_ERROR_NO_MEMORY
#define DMD_ERROR_BAD_GCT
#define DMD_ERROR_BAD_IO
,
, and
char
int
Unsigned
DByte
DUShort
DULong
).
TRUE
Chapter 3
can mean
long
. When
void
0
1
2
3
4
5