List of data types
The table below lists the data types of the field values, together with their corresponding C and C++ data types. The values shown in the Field column under Data type are those shown in the Format column of the record field tables.
Data type |
Size (bytes) |
Description |
|
---|---|---|---|
Field |
C and C++ |
||
char(n) |
char( ) |
1 |
Character data (from 0x20 to 0x7e) |
double |
double |
8 |
Numeric value (1.7E308 (15 digits)) |
long |
long |
4 |
Numeric value (from -2,147,483,648 to 2,147,483,647) |
short |
short |
2 |
Numeric value (from -32,768 to 32,767) |
string(n) |
char[ ] |
Value in parentheses |
Character string with a length of n bytes. The last character is the null. |
time_t |
unsigned long |
4 |
Numeric value (from 0 to 4,294,967,295) |
timeval |
struct |
8 |
Numeric value (the first 4 bytes are the seconds, the next 4 bytes are the microseconds) |
ulong |
unsigned long |
4 |
Numeric value (from 0 to 4,294,967,295) |
ushort |
unsigned short |
2 |
Numeric value (from 0 to 65,535) |
utime |
struct |
8 |
Numeric value (the first 4 bytes are the seconds, the next 4 bytes are the microseconds) |
word |
unsigned short |
2 |
Numeric value (from 0 to 65,535) |
(Not applicable) |
unsigned char |
1 |
Numeric value (from 0 to 255) |