The writ of habeas corpus to testify shall be served by the same person, and in like manner in all respects, and enforced by the court or officer issuing the same as prescribed in this Chapter for the service and enforcement of the writ of habeas corpus cum causa.
N.C. Gen. Stat. § 17-43