Breaking a 16-bit long int to write into eeprom?
In C, you can use bit-shift and masking to extract each byte of a longer number:

lower_8bits = value &amp; 0xff;
upper_8bits = (value &gt;&gt; 8) &amp; 0xff;


And you can 'reassemble' the number from bytes by doing the reverse:

value = (upper_8bits &lt;&lt; 8) | lower_8bits;