S.C. Code Ann. § 17-17-50
Such writ shall be directed to the officer in whose custody the party so committed or detained shall be and shall be returned immediately before the judge issuing it.