Be aware that in ANSI C the type
int is only guaranteed to
provide 16-bits. It may provide more, but is not guaranteed to.
Therefore if you require 32 bits you must use
long int, which
will have 32 bits or more. Of course, on many platforms the type
int does have 32 bits instead of 16 bits but we have to code to
the ANSI standard rather than a specific platform.