Some C programming practice