int
[type-specifier]
[ signed | unsigned ] integer-modifier [ int ] declarator-list;
type-specifier
Specifies a base_type,
struct, union, enum type, or type identifier. An optional
storage specification can precede type-specifier.
integer-modifier
Specifies the
keyword small, short, long, or hyper, which selects
the size of the integer data. On 16-bit platforms, the size qualifier must be
present.
declarator-list
Specifies one
or more standard C declarators, such as identifiers, pointer declarators, and
array declarators. (Function declarators and bit-field declarations are not
allowed in structures that are transmitted in remote procedure calls. These
declarators are allowed in structures that are not transmitted.) Separate
multiple declarators with commas.
Examples
signed short int i = 0;
int j = i;
typedef struct {
small
int i1;
short i2;
unsigned
long int i3;
} INTSIZETYPE;
void MyFunc([in] long int lCount);
Remarks
On 32-bit
platforms, the keyword int specifies a 32-bit signed integer. On 16-bit
platforms, the keyword int is an optional keyword that can accompany the
keywords small, short, and long.
Integer types
are among the base types of the interface definition language (IDL). They can
appear as type specifiers in typedef declarations, general declarations,
and function declarators (as a function-return-type specifier and as a
parameter-type specifier). For the context in which type specifiers appear, see
IDL
If no integer
sign specification is provided, the integer type defaults to signed.
DCE IDL
compilers do not allow the keyword signed to specify the sign of integer
types. Therefore, this feature is not available when you use the MIDL compiler
/osf switch.
See Also