The charges for keeping such debtor in the common jail shall be such as are allowed by law for dieting prisoners confined under process in the court of general sessions. And if the plaintiff recover judgment against the debtor or an assignment of his effects be made as provided in this chapter such charges may be recovered as disbursements in the action or paid out of the estate assigned before any dividend is declared.
S.C. Code § 15-17-820