It shall be the duty of district attorneys, when they shall be informed or have knowledge of any felon, or person otherwise charged with any crime or offense against the State, having within their respective districts escaped out of the custody of any sheriff, deputy sheriff, coroner, or jailer, to take the necessary measures to prosecute such sheriff or other officer so offending.
N.C. Gen. Stat. § 14-240