Choosing the Right Integer Types in C and C++
Dan Saks