Some useful C constructs for use in my own code