changed a C snippet