OK, this is my first app coded in C. It's a port of my PSPeriodic Table from Lua. It's ASCII graphics, so it doesn't look good, but it gets the job done. So here it is, download it below.
Here's a screenshot:
EDIT: Oops, must not forget to mention SG57 for the blank template and tutorials, and the Noobz team for the the TIFF SDK and the tetris source, which helped a lot.