C language sample code