40 inmates charged with violent crimes from inside prison in South Carolina