21-27-7. Writ used to produce prisoners for testimony in criminal proceedings.
The Supreme and circuit courts and the judges thereof shall have power to issue writs of habeas corpus for the purpose of bringing any person imprisoned in any prison before any court or magistrate, to testify in any criminal action or proceeding in any county of the state, and returning such person to such prison.
Source: CCrimP 1877, §689; CL 1887, §7857; RCCrimP 1903, §789; RC 1919, §4991; SDC 1939 & Supp 1960, §37.5503.