§ 3970. Prisoner charged with crime, notice to state's attorney
When it appears that the prisoner is imprisoned on a criminal accusation, he shall not be discharged until sufficient notice is given to the state's attorney, whose duty it is to prosecute for such offense, to appear and object to such discharge.