Upon information made of the materiality of any witness within the State to support any accusation made or when the materiality of such witness shall be within the knowledge of any magistrate, he shall issue his warrant requiring such witness to appear before him or the next magistrate to enter into recognizance, with good security, if deemed proper. Such warrant shall authorize the arrest and detention of any such witness in any county in the State. On being brought before such magistrate and refusing to enter into recognizance, such witness may be committed by the magistrate to the jail of the county, there to remain until he shall be regularly discharged or shall enter into recognizance as required by this chapter.
S.C. Code § 22-5-550