Some sample C codes for various testing purposes