List of data types
Table 5-5 lists the data types for field values and the corresponding C and C++ data types. The values shown in the Format column of the record field tables are those shown below in the Field column under Data type.
Data type |
Byte |
Description |
|
---|---|---|---|
Field |
C and C++ |
||
char(n) |
char( ) |
Number in parentheses |
Character data of n bytes. |
Double |
double |
8 |
Numeric value (1.7E308 (15 digits)) |
Long |
long |
4 |
Numeric value (-2,147,483,648 to 2,147,483,647) |
Short |
short |
2 |
Numeric value (-32,768 to 32,767) |
string(n) |
char[ ] |
Number in parentheses |
Character string of n bytes. Japanese Windows: 7-bit ASCII and SJIS Simplified Chinese Windows: 7-bit ASCII and GB18030 Other language editions of Windows: only 7-bit ASCII Linux: 7-bit ASCII and either UTF-8 or GB18030 The last character is null. |
time_t |
unsigned long |
4 |
Numeric value (0 to 4,294,967,295) |
Timeval |
Structure |
8 |
Numeric value (first 4 bytes are seconds, next 4 bytes are microseconds) |
Ulong |
unsigned long |
4 |
Numeric value (0 to 4,294,967,295) |
Ushort |
unsigned short |
2 |
Numeric value (0 to 65,535) |
Utime |
Structure |
8 |
Numeric value (first 4 bytes are seconds, next 4 bytes are microseconds) |
Word |
unsigned short |
2 |
Numeric value (0 to 65,535) |
(Not applicable) |
unsigned char |
1 |
Numeric value (0 to 255) |