Program of Lamport's Logical Clock in C language.