When it appears from the return of the writ or otherwise that the person is imprisoned on a criminal accusation he shall not be discharged until sufficient notice has been given to the Attorney General or circuit solicitor or other attorney acting for the State, that he may appear and object to such discharge, if he thinks fit.
S.C. Code § 17-17-120