21-27-2. Inquiry into delay in bringing criminal prosecution to trial--Powers of court on return of writ. Any person committed for a criminal offense and not brought to trial, as provided by the provisions of this code, is entitled to have the delay inquired into upon a writ of habeas corpus, and the court or judge, upon the return of such writ, shall have power to remand or discharge the applicant or to admit him to bail, with or without sureties as the case may be.
Source: CCrimP 1877, § 678; CL 1887, § 7846; RCCrimP 1903, § 778; RC 1919, § 4984; SDC 1939 & Supp 1960, § 37.5502.