ANSI C will guarantee minimum sizes for integer types. A short or an int will have 16 bits minimum and a long will have 32 bits minimum. For other sizes, round up. For more than 32 bits, find another way.