Complete C code part