List of data types
The table below lists the data types for various field values along with the corresponding C and C++ data types. The field values shown under Data type in this table are shown in the Format column in the field table for each record.
Table 8-5 List of data types
Data type | Bytes | Explanation | |
---|---|---|---|
Field | C and C++ | ||
char(n) | char() | Number inside ( ) | Character string having a length of n bytes |
double | double | 8 | Numerical value (1.7E![]() |
float | float | 4 | Numerical value (3.4E![]() |
long | long | 4 | Numerical value (-2,147,483,648 to 2,147,483,647) |
short | short | 2 | Numerical value (-32,768 to 32,767) |
string(n) | char[] | Number inside ( ) | Character string having n-byte length. The last character is null. |
time_t | unsigned long | 4 | Numerical value (0 to 4,294,967,295) |
timeval | struct | 8 | Numerical value (the first 4 bytes indicate seconds, and the next 4 bytes indicate microseconds.) |
ulong | unsigned long | 4 | Numerical value (0 to 4,294,967,295) |
utime | struct | 8 | Numerical value (the first 4 bytes indicate seconds, and the next 4 bytes indicate microseconds.) |
word | unsigned short | 2 | Numerical value (0 to 65,535) |
(Not applicable) | unsigned char | 1 | Numerical value (0 to 255) |