List of data types
The table below lists the data type for each field value and the corresponding C and C++ data types. The Field value under Data type shown in this table is indicated under the Format column in the Field table for each record.
|
Data type |
Size (bytes) |
Explanation |
|
|---|---|---|---|
|
Field |
C and C++ |
||
|
char(n) |
char( ) |
1 |
Character data (0x20-0x7e) |
|
double |
double |
8 |
Numeric value (1.7E |
|
long |
long |
4 |
Numeric value (-2,147,483,648 through 2,147,483,647) |
|
short |
short |
2 |
Numeric value (-32,768 through 32,767) |
|
string(n) |
char[ ] |
Number inside ( ) |
Character string that is n-byte long. The last characters are NULL. |
|
time_t |
unsigned long |
4 |
Numeric value (0 through 4,294,967,295) |
|
timeval |
structure |
8 |
Numeric value (The first 4 bytes and the next 4 bytes indicate seconds and microseconds, respectively.) |
|
ulong |
unsigned long |
4 |
Numeric value (0 through 4,294,967,295) |
|
ushort |
unsigned short |
2 |
Numeric value (0 through 65,535) |
|
utime |
structure |
8 |
Numeric value (The first 4 bytes and the next 4 bytes indicate seconds and microseconds, respectively.) |
|
word |
unsigned short |
2 |
Numeric value (0 through 65,535) |
|
(Not applicable) |
unsigned char |
1 |
Numeric value (0 through 255) |