Re: 2038
Just to add you can easily include time_t in to the same simple test program. But on typical 64-bit Linux box that is going to fail (as time_t is 64-bit and not the 32-bit unsigned used for this demo) so you need to add 32-bit support for testing it as a 32-bit program. For example:
sudo apt-get install gcc-multilib g++-multilib
Then compile for 32-bit machine with:
gcc -Wall -m32 itest.c -o itest