The major purpose of slave codes was to regulate:

A)participation of staves in sports

B)the languages of the slaves

C)activities and actions of slaves

D)the treatment of slaves by their owners.