Some C code I am playing around with