Penal Code § 335
CHAPTER 10. Gaming
Every district attorney, sheriff, or police officer must inform against and diligently prosecute persons whom they have reasonable cause to believe offenders against the provisions of this chapter, and every officer refusing or neglecting so to do, is guilty of a misdemeanor.