C language programming example (200 lines)