C coding ssamples