sregulation in C