Some C codes